Whamcloud - gitweb
b=2552
authorwangchao <wangchao>
Tue, 27 Jan 2004 04:13:12 +0000 (04:13 +0000)
committerwangchao <wangchao>
Tue, 27 Jan 2004 04:13:12 +0000 (04:13 +0000)
r=shaver
Don't allow batchfile contain --merge, --input and --output for lmc --batch batchfile.

lustre/utils/lmc

index 1f2533a..d668848 100755 (executable)
@@ -1081,6 +1081,9 @@ def main():
         for cmd in batchCommands:
             try:
                 options, args = cl.parse(string.split(cmd))
+                if options.merge or options.input or options.output:
+                        print "The batchfile should not contain --merge, --input or --output."
+                        sys.exit(1)
                 do_command(gen, lustre, options, args)
             except OptionError, e:
                 panic(cmd, e)