qvm-device: prevent parser allowing abbreviations

This commit is contained in:
Frédéric Pierret (fepitre) 2019-08-24 13:29:07 +02:00
parent 41c6fbed72
commit 8639034bb6
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -211,6 +211,7 @@ def get_parser(device_class=None):
want_app=True)
parser.register('action', 'parsers',
qubesadmin.tools.AliasedSubParsersAction)
parser.allow_abbrev = False
if device_class:
parser.add_argument('devclass', const=device_class,
action='store_const',