From 00b83b8a228e8cb8ff62fe80d17b571a50d04ae8 Mon Sep 17 00:00:00 2001 From: cslocum Date: Thu, 27 Dec 2012 17:33:00 +0000 Subject: update run_all.py to make modified call to easyargs.get() git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@919 d34015c8-bcbb-4646-8ac8-8ba5febf221d --- steuermann/run_all.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'steuermann/run_all.py') diff --git a/steuermann/run_all.py b/steuermann/run_all.py index 288b9ee..fc15f93 100644 --- a/steuermann/run_all.py +++ b/steuermann/run_all.py @@ -67,7 +67,7 @@ def main() : '-h' : '=' , # give hosts (*.ini) file } - opt, args = easyargs.get(allowed_flags) + opt, args = easyargs.get(allowed_flags, allow_unexpected = True) # # @@ -97,10 +97,10 @@ def main() : db = steuermann.config.open_db() - # find any unknown arguments like --something=whatever, set as conditions arguments = sys.argv[1:] - for a in args: + for a in arguments: + print a if '--' in a and '=' in a: not_allowed_flag = True for f in allowed_flags.keys(): @@ -112,7 +112,6 @@ def main() : k, v = a.split('=') nodes.saved_conditions[k] = v - if all : run_all(xnodes, run_name, hosts_ini, db) else : -- cgit