From 1f9bd1f4556a2eda2041fb452d2fc052256837cd Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Mon, 14 Feb 2011 12:07:47 +0100 Subject: [PATCH] check args for quit command --- cccli/command/shell.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cccli/command/shell.py b/cccli/command/shell.py index b80d7f0..4a56d02 100644 --- a/cccli/command/shell.py +++ b/cccli/command/shell.py @@ -12,6 +12,8 @@ from cccli.command.command import Command class Command_quit(Command): '''Quit application with respect''' def __call__(self, argv): + if len(argv) != 1: + raise cmdBadArgument() raise SystemExit() -- GitLab