qvm-run: warn if --localcmd used without --pass-io
This commit is contained in:
parent
6378e2bd20
commit
0e273276d3
@ -132,6 +132,10 @@ def main():
|
|||||||
if (options.passio and not options.localcmd) and options.run_on_all_running:
|
if (options.passio and not options.localcmd) and options.run_on_all_running:
|
||||||
parser.error ("Options --all and --pass-io cannot be used together")
|
parser.error ("Options --all and --pass-io cannot be used together")
|
||||||
|
|
||||||
|
if options.localcmd and not options.passio:
|
||||||
|
print >> sys.stderr, "WARNING: option --localcmd have no effect " \
|
||||||
|
"without --pass-io"
|
||||||
|
|
||||||
if options.passio:
|
if options.passio:
|
||||||
options.verbose = False
|
options.verbose = False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user