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
parent 91727389c4
commit 880566a387
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
4 changed files with 32 additions and 0 deletions

View File

@ -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
=================

View File

@ -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
=================

View File

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

View File

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