~mdw
/
hippotat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
config: Check args after reading config
[hippotat]
/
hippotatlib
/
__init__.py
diff --git
a/hippotatlib/__init__.py
b/hippotatlib/__init__.py
index
e8a502f
..
4f0bc8c
100644
(file)
--- a/
hippotatlib/__init__.py
+++ b/
hippotatlib/__init__.py
@@
-630,12
+630,13
@@
just `+': all DFLAGs.
action='callback',
callback= oc_config)
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()
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)
try:
(pss, pcs) = _cfg_process_putatives()
process_cfg(opts, pss, pcs)