diff --git a/cccli/command/shell.py b/cccli/command/shell.py index cb89deb9c6f0176610dcef01a0157872cd3a2164..886ff1f8acac7b1e01f9ce2ef982ba9aec1b4b7c 100644 --- a/cccli/command/shell.py +++ b/cccli/command/shell.py @@ -87,6 +87,8 @@ class Command_usage(Command): def __call__(self, argv): if len(argv) != 2: raise cmdBadArgument() + if argv[1] not in self.cli.commands: + raise cmdBadArgument(argv[1]) usage = self.cli.commands.usage(argv[1]) if usage is None: self.printer.out("No usage.")