ソースを参照

qvm-device: prevent parser allowing abbreviations

Frédéric Pierret (fepitre) 4 年 前
コミット
8639034bb6
1 ファイル変更1 行追加0 行削除
  1. 1 0
      qubesadmin/tools/qvm_device.py

+ 1 - 0
qubesadmin/tools/qvm_device.py

@@ -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',