qvm-run: warn if --localcmd used without --pass-io

This commit is contained in:
Marek Marczykowski-Górecki 2016-02-08 05:01:50 +01:00
parent 6378e2bd20
commit 0e273276d3
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -132,6 +132,10 @@ def main():
if (options.passio and not options.localcmd) and options.run_on_all_running:
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:
options.verbose = False