create-submit without simulation name gives bad error message

Create issue
Issue #464 resolved
Erik Schnetter created an issue

Calling create-submit without specifying a simulation name does not give a legible error message:

$ ./bin/sim create-submit --debug Info: Simfactory command: ./bin/../simfactory/lib/ "create-submit" "--debug" Info: Version 1371M The Simulation Factory: Manage Cactus simulations

Info: defs: /Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/etc/defs.ini Info: defs.local: /Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/etc/defs.local.ini Info: Cactus Directory: /Users/eschnett/EinsteinToolkit-hg-vanilla Info: simenv.COMMAND: create-submit Info: Executing command: create_submit Traceback (most recent call last): File "./bin/../simfactory/lib/", line 147, in <module> main() File "./bin/../simfactory/lib/", line 143, in main CommandDispatch() File "./bin/../simfactory/lib/", line 105, in CommandDispatch module.main() File "/Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/lib/", line 345, in main CommandDispatch() File "/Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/lib/", line 324, in CommandDispatch exec("command_%s()" % command) File "<string>", line 1, in <module> File "/Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/lib/", line 125, in command_create_submit simulationName = simenv.OptionsManager.args.pop(0) IndexError: pop from empty list


Comments (1)

  1. Log in to comment