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