Signed-off-by: Wu Fengguang wfg@mail.ustc.edu.cn --- sbin/submit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sbin/submit b/sbin/submit index 979e3dca..2475466f 100755 --- a/sbin/submit +++ b/sbin/submit @@ -58,11 +58,11 @@ end
options.parse!(ARGV)
-find_job_yaml = false +seen_job_yaml = false ARGV.delete_if do |arg| - find_job_yaml = true if arg =~ /.yaml$/ + seen_job_yaml = true if arg =~ /.yaml$/ if arg.index '=' - if find_job_yaml + if seen_job_yaml opt_set_key_value.merge! YAML.load arg.sub(/=/, ': ') else opt_cmdline_defaults.merge! YAML.load arg.sub(/=/, ': ')