diff options
| author | Major Hayden <major@mhtx.net> | 2015-08-12 16:37:03 -0400 |
|---|---|---|
| committer | Major Hayden <major@mhtx.net> | 2015-08-14 10:31:53 -0400 |
| commit | 0f0d66f3f101cbc1108af579aa0f375b0d383375 (patch) | |
| tree | c249766b8d394a7fcb37d930e0aea6aa602e0b74 | |
| parent | 0cc1e5aa2b7ff7fa55e6083a397c07fc1cc744dd (diff) | |
| download | python-openstackclient-0f0d66f3f101cbc1108af579aa0f375b0d383375.tar.gz | |
Running 'limits show' returns nothing
Running limits show without --absolute or --rate returns nothing and
the user is left to figure out what they need to provide to get the
correct data back. This patch prints an error and help output by making
at least one of the arguments required.
Change-Id: I576cf8ec0e05524ee67d46c48b56da8d44258667
| -rw-r--r-- | openstackclient/common/limits.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/common/limits.py b/openstackclient/common/limits.py index 4abcf169..c738f150 100644 --- a/openstackclient/common/limits.py +++ b/openstackclient/common/limits.py @@ -31,7 +31,7 @@ class ShowLimits(lister.Lister): def get_parser(self, prog_name): parser = super(ShowLimits, self).get_parser(prog_name) - type_group = parser.add_mutually_exclusive_group() + type_group = parser.add_mutually_exclusive_group(required=True) type_group.add_argument( "--absolute", dest="is_absolute", |
