qubes/tools: do not reject --set/--get in *-prefs tools

Those options are no longer needed, but lets not reject them to preserve
compatibility with older scripts

QubesOS/qubes-issues#2412
This commit is contained in:
Marek Marczykowski-Górecki 2016-11-02 06:20:24 +01:00
부모 91727389c4
커밋 880566a387
No known key found for this signature in database
GPG 키 ID: 063938BA42CFA724
4개의 변경된 파일32개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -35,6 +35,14 @@ Options
Unset the property. If is has default value, it will be used instead.
.. option:: --get, -g
Ignored; for compatibility with older scripts.
.. option:: --set, -s
Ignored; for compatibility with older scripts.
Common properties
=================

파일 보기

@ -35,6 +35,14 @@ Options
Unset the property. If is has default value, it will be used instead.
.. option:: --get, -g
Ignored; for compatibility with older scripts.
.. option:: --set, -s
Ignored; for compatibility with older scripts.
Common properties
=================

파일 보기

@ -39,6 +39,14 @@ parser = qubes.tools.QubesArgumentParser(
parser.add_argument('--help-properties',
action=qubes.tools.HelpPropertiesAction)
parser.add_argument('--get', '-g',
action='store_true',
help='Ignored; for compatibility with older scripts.')
parser.add_argument('--set', '-s',
action='store_true',
help='Ignored; for compatibility with older scripts.')
parser.add_argument('property', metavar='PROPERTY',
nargs='?',
help='name of the property to show or change')

파일 보기

@ -42,6 +42,14 @@ parser.add_argument('--help-properties',
action=qubes.tools.HelpPropertiesAction,
klass=qubes.vm.qubesvm.QubesVM)
parser.add_argument('--get', '-g',
action='store_true',
help='Ignored; for compatibility with older scripts.')
parser.add_argument('--set', '-s',
action='store_true',
help='Ignored; for compatibility with older scripts.')
parser.add_argument('property', metavar='PROPERTY',
nargs='?',
help='name of the property to show or change')