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

check args for version command

parent 1f9bd1f4
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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