Prettify hy command helping message
This commit is contained in:
parent
d4936c29ae
commit
57064d38dd
@ -253,7 +253,8 @@ def run_icommand(source, **kwargs):
|
|||||||
|
|
||||||
USAGE = "%(prog)s [-h | -i cmd | -c cmd | -m module | file | -] [arg] ..."
|
USAGE = "%(prog)s [-h | -i cmd | -c cmd | -m module | file | -] [arg] ..."
|
||||||
VERSION = "%(prog)s " + hy.__version__
|
VERSION = "%(prog)s " + hy.__version__
|
||||||
EPILOG = """ file program read from script
|
EPILOG = """
|
||||||
|
file program read from script
|
||||||
module module to execute as main
|
module module to execute as main
|
||||||
- program read from stdin
|
- program read from stdin
|
||||||
[arg] ... arguments passed to program in sys.argv[1:]
|
[arg] ... arguments passed to program in sys.argv[1:]
|
||||||
@ -270,8 +271,7 @@ def cmdline_handler(scriptname, argv):
|
|||||||
help="program passed in as a string")
|
help="program passed in as a string")
|
||||||
parser.add_argument("-m", dest="mod",
|
parser.add_argument("-m", dest="mod",
|
||||||
help="module to run, passed in as a string")
|
help="module to run, passed in as a string")
|
||||||
parser.add_argument(
|
parser.add_argument("-i", dest="icommand",
|
||||||
"-i", dest="icommand",
|
|
||||||
help="program passed in as a string, then stay in REPL")
|
help="program passed in as a string, then stay in REPL")
|
||||||
parser.add_argument("--spy", action="store_true",
|
parser.add_argument("--spy", action="store_true",
|
||||||
help="print equivalent Python code before executing")
|
help="print equivalent Python code before executing")
|
||||||
|
Loading…
Reference in New Issue
Block a user