From 2f49c3db8bc5eec533face4c31f1b60409a76215 Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Mon, 14 Feb 2011 12:16:33 +0100 Subject: [PATCH] args check in expert command --- cccli/command/expert.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cccli/command/expert.py b/cccli/command/expert.py index 5d46e5e..1ed92d2 100644 --- a/cccli/command/expert.py +++ b/cccli/command/expert.py @@ -14,6 +14,8 @@ class Command_expert(Command): '''Switch in expert mode''' def __call__(self, argv): + if len(argv) != 1: + raise cmdBadArgument() h = list(self.printer.history) self.printer.history.read(self.cli.settings.get("expert", "")) try: -- GitLab