manage no argument set to script/cucchiaiata-cli commandline tool
This commit is contained in:
parent
932fbc18e2
commit
58370148bc
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/python3
|
||||||
"""Zephir-cmd-input script
|
"""Zephir-cmd-input script
|
||||||
"""
|
"""
|
||||||
from sys import exit, argv
|
from sys import exit, argv
|
||||||
|
@ -10,8 +10,8 @@ from cucchiaiata.i18n import _
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
try:
|
try:
|
||||||
if argv[1] in ['setting.session.server.configure',
|
if len(argv) > 2 and argv[1] in ['setting.session.server.configure',
|
||||||
'setting.session.servermodel.configure']:
|
'setting.session.servermodel.configure']:
|
||||||
Configuration().get()
|
Configuration().get()
|
||||||
else:
|
else:
|
||||||
parser = Parser()
|
parser = Parser()
|
||||||
|
|
Loading…
Reference in New Issue