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:
parent
91727389c4
commit
880566a387
@ -35,6 +35,14 @@ Options
|
|||||||
|
|
||||||
Unset the property. If is has default value, it will be used instead.
|
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
|
Common properties
|
||||||
=================
|
=================
|
||||||
|
@ -35,6 +35,14 @@ Options
|
|||||||
|
|
||||||
Unset the property. If is has default value, it will be used instead.
|
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
|
Common properties
|
||||||
=================
|
=================
|
||||||
|
@ -39,6 +39,14 @@ parser = qubes.tools.QubesArgumentParser(
|
|||||||
parser.add_argument('--help-properties',
|
parser.add_argument('--help-properties',
|
||||||
action=qubes.tools.HelpPropertiesAction)
|
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',
|
parser.add_argument('property', metavar='PROPERTY',
|
||||||
nargs='?',
|
nargs='?',
|
||||||
help='name of the property to show or change')
|
help='name of the property to show or change')
|
||||||
|
@ -42,6 +42,14 @@ parser.add_argument('--help-properties',
|
|||||||
action=qubes.tools.HelpPropertiesAction,
|
action=qubes.tools.HelpPropertiesAction,
|
||||||
klass=qubes.vm.qubesvm.QubesVM)
|
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',
|
parser.add_argument('property', metavar='PROPERTY',
|
||||||
nargs='?',
|
nargs='?',
|
||||||
help='name of the property to show or change')
|
help='name of the property to show or change')
|
||||||
|
Loading…
Reference in New Issue
Block a user