Fix boxes script when passing no param
This commit is contained in:
parent
cd0d49bf6f
commit
10cad241ef
scripts
|
@ -25,7 +25,7 @@ boxes [NAME] [options]
|
||||||
def main():
|
def main():
|
||||||
modules = boxes.generators.getAllGeneratorModules()
|
modules = boxes.generators.getAllGeneratorModules()
|
||||||
del modules['_template']
|
del modules['_template']
|
||||||
if sys.argv[1].startswith("--id="):
|
if len(sys.argv) > 1 and sys.argv[1].startswith("--id="):
|
||||||
del sys.argv[1]
|
del sys.argv[1]
|
||||||
if len(sys.argv) == 1:
|
if len(sys.argv) == 1:
|
||||||
printusage()
|
printusage()
|
||||||
|
|
Loading…
Reference in New Issue