Skip to content

Commit 0f0d66f

Browse files
committed
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
1 parent 0cc1e5a commit 0f0d66f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/common/limits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ShowLimits(lister.Lister):
3131

3232
def get_parser(self, prog_name):
3333
parser = super(ShowLimits, self).get_parser(prog_name)
34-
type_group = parser.add_mutually_exclusive_group()
34+
type_group = parser.add_mutually_exclusive_group(required=True)
3535
type_group.add_argument(
3636
"--absolute",
3737
dest="is_absolute",

0 commit comments

Comments
 (0)