qubes/tools/qvm_run: fix --all/--passio exclusion

This commit is contained in:
Wojtek Porczyk 2016-04-18 22:54:55 +02:00
parent e720e1634b
commit adbca5c0f6

View File

@ -84,8 +84,8 @@ def main(args=None):
if args.color_output is None and args.filter_esc: if args.color_output is None and args.filter_esc:
args.color_output = '31' args.color_output = '31'
if args.vm is qubes.tools.VM_ALL and args.passio: if len(args.vm) > 1 and args.passio:
parser.error('--all and --passio are mutually exclusive') parser.error('--passio cannot be used when more than 1 qube is chosen')
if args.localcmd and not passio.passio: if args.localcmd and not passio.passio:
parser.error('--localcmd have no effect without --pass-io') parser.error('--localcmd have no effect without --pass-io')
if args.color_output and not args.filter_esc: if args.color_output and not args.filter_esc: