diff --git a/qubes/tools/qvm_prefs.py b/qubes/tools/qvm_prefs.py index 336b319a..df7295e7 100644 --- a/qubes/tools/qvm_prefs.py +++ b/qubes/tools/qvm_prefs.py @@ -83,6 +83,8 @@ def main(args=None): return 0 + if args.property not in [prop.__name__ for prop in args.vm.property_list()]: + parser.error('no such property: {!r}'.format(args.property)) if args.value is not None: setattr(args.vm, args.property, args.value)