shell: disallow abbrev in argparse
The way cliff works, it parses the command line in several passes, which can make certain option interpreted as other options. Change-Id: I1ef4b88cab7637bf0e6627235e12144c80cfe12d
This commit is contained in:
parent
a3c85df272
commit
db1202ff93
|
@ -96,8 +96,10 @@ class GnocchiShell(app.App):
|
|||
:param version: version number for the application
|
||||
:paramtype version: str
|
||||
"""
|
||||
parser = super(GnocchiShell, self).build_option_parser(description,
|
||||
version)
|
||||
parser = super(GnocchiShell, self).build_option_parser(
|
||||
description,
|
||||
version,
|
||||
argparse_kwargs={'allow_abbrev': False})
|
||||
# Global arguments, one day this should go to keystoneauth1
|
||||
parser.add_argument(
|
||||
'--os-region-name',
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# process, which may cause wedges in the gate later.
|
||||
|
||||
pbr<2.0,>=1.4
|
||||
cliff>=1.14.0 # Apache-2.0
|
||||
cliff>1.16.0 # Apache-2.0
|
||||
oslo.serialization>=1.4.0 # Apache-2.0
|
||||
oslo.utils>=2.0.0 # Apache-2.0
|
||||
keystoneauth1>=1.0.0
|
||||
|
|
Loading…
Reference in New Issue