From 2c675883fc86a515c028eae65e6c00d07bc02961 Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Mon, 14 Feb 2011 12:08:07 +0100 Subject: [PATCH] check args for version command --- cccli/command/shell.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cccli/command/shell.py b/cccli/command/shell.py index 4a56d02..7fc5549 100644 --- a/cccli/command/shell.py +++ b/cccli/command/shell.py @@ -20,6 +20,8 @@ class Command_quit(Command): class Command_version(Command): '''Print cli version''' def __call__(self, argv): + if len(argv) != 1: + raise cmdBadArgument() import cccli self.printer.out(cccli.version) -- GitLab