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
|
||||
"""
|
||||
from sys import exit, argv
|
||||
|
@ -10,7 +10,7 @@ from cucchiaiata.i18n import _
|
|||
|
||||
def main():
|
||||
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']:
|
||||
Configuration().get()
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue