diff options
author | 2020-12-23 20:16:13 -0700 | |
---|---|---|
committer | 2020-12-23 20:16:13 -0700 | |
commit | f14b8da4918c2578fd63a765d411938df4dd643c (patch) | |
tree | b775e5ed3f0992073d3f4adaf24bbaf3ddf42530 /src/pkgcheck/scripts | |
parent | pkgcheck: use separate repo argparser instance (diff) | |
download | pkgcheck-f14b8da4918c2578fd63a765d411938df4dd643c.tar.gz pkgcheck-f14b8da4918c2578fd63a765d411938df4dd643c.tar.bz2 pkgcheck-f14b8da4918c2578fd63a765d411938df4dd643c.zip |
pkgcheck scan: add todo note about argparsing
Diffstat (limited to 'src/pkgcheck/scripts')
-rw-r--r-- | src/pkgcheck/scripts/pkgcheck.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pkgcheck/scripts/pkgcheck.py b/src/pkgcheck/scripts/pkgcheck.py index 270333fa..27226ee4 100644 --- a/src/pkgcheck/scripts/pkgcheck.py +++ b/src/pkgcheck/scripts/pkgcheck.py @@ -367,7 +367,10 @@ def _setup_scan(parser, namespace, args): namespace = config_parser.parse_config_options( namespace, configs=ConfigFileParser.default_configs) - # re-parse command line args to override config defaults + # TODO: Limit to parsing repo and targets options here so all args don't + # have to be parsed twice, will probably require a custom snakeoil + # arghparse method. + # parse command line args to override config defaults namespace, _ = parser._parse_known_args(args, namespace) # Get the current working directory for repo detection and restriction |