aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2020-12-23 20:16:13 -0700
committerTim Harder <radhermit@gmail.com>2020-12-23 20:16:13 -0700
commitf14b8da4918c2578fd63a765d411938df4dd643c (patch)
treeb775e5ed3f0992073d3f4adaf24bbaf3ddf42530 /src/pkgcheck/scripts
parentpkgcheck: use separate repo argparser instance (diff)
downloadpkgcheck-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.py5
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