From e5f6fff02ac195add8cf14ad4a597d58c6613a9b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 9 Apr 2017 16:10:29 +0100 Subject: [PATCH] config: Check args after reading config Signed-off-by: Ian Jackson --- hippotatlib/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hippotatlib/__init__.py b/hippotatlib/__init__.py index e8a502f..4f0bc8c 100644 --- a/hippotatlib/__init__.py +++ b/hippotatlib/__init__.py @@ -630,12 +630,13 @@ just `+': all DFLAGs. action='callback', callback= oc_config) - (opts, args) = optparser.parse_args() - if len(args): optparser.error('no non-option arguments please') if need_defcfg: read_defconfig() + (opts, args) = optparser.parse_args() + if len(args): optparser.error('no non-option arguments please') + try: (pss, pcs) = _cfg_process_putatives() process_cfg(opts, pss, pcs) -- 2.11.0