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,8 +10,8 @@ from cucchiaiata.i18n import _
|
||||
|
||||
def main():
|
||||
try:
|
||||
if argv[1] in ['setting.session.server.configure',
|
||||
'setting.session.servermodel.configure']:
|
||||
if len(argv) > 2 and argv[1] in ['setting.session.server.configure',
|
||||
'setting.session.servermodel.configure']:
|
||||
Configuration().get()
|
||||
else:
|
||||
parser = Parser()
|
||||
|
Loading…
Reference in New Issue
Block a user