Show More
@@ -61,6 +61,11 b' This line is evaluated in Python, so simple expressions are allowed, e.g.::' | |||||
61 | `--C.a='range(3)'` For setting C.a=[0,1,2]. |
|
61 | `--C.a='range(3)'` For setting C.a=[0,1,2]. | |
62 | """.strip() # trim newlines of front and back |
|
62 | """.strip() # trim newlines of front and back | |
63 |
|
63 | |||
|
64 | # sys.argv can be missing, for example when python is embedded. See the docs | |||
|
65 | # for details: http://docs.python.org/2/c-api/intro.html#embedding-python | |||
|
66 | if not hasattr(sys, "argv"): | |||
|
67 | sys.argv = [""] | |||
|
68 | ||||
64 | subcommand_description = """ |
|
69 | subcommand_description = """ | |
65 | Subcommands are launched as `{app} cmd [args]`. For information on using |
|
70 | Subcommands are launched as `{app} cmd [args]`. For information on using | |
66 | subcommand 'cmd', do: `{app} cmd -h`. |
|
71 | subcommand 'cmd', do: `{app} cmd -h`. |
General Comments 0
You need to be logged in to leave comments.
Login now