manage no argument set to script/cucchiaiata-cli commandline tool

This commit is contained in:
Emmanuel Garette 2020-04-09 08:34:08 +02:00
parent 932fbc18e2
commit 58370148bc
1 changed files with 3 additions and 3 deletions

View File

@ -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()