Skip to content
Snippets Groups Projects
Commit 2f49c3db authored by Seblu's avatar Seblu
Browse files

args check in expert command

parent 25e8d49d
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment