chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5f6fff
)
Revert "config: Check args after reading config"
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 9 Apr 2017 15:11:12 +0000
(16:11 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 9 Apr 2017 15:11:12 +0000
(16:11 +0100)
This is total nonsense. We want to parse the arguments first.
This reverts commit
e5f6fff02ac195add8cf14ad4a597d58c6613a9b
.
hippotatlib/__init__.py
patch
|
blob
|
history
diff --git
a/hippotatlib/__init__.py
b/hippotatlib/__init__.py
index 4f0bc8ce467b1d138b804607166f65f07a4498ee..e8a502f8a35b88b9ea616e7dce6c0089a5e55401 100644
(file)
--- a/
hippotatlib/__init__.py
+++ b/
hippotatlib/__init__.py
@@
-630,13
+630,12
@@
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)