Allow --version as a synonym for -v
--version is a GNU standard that is also common for non-GNU programs, such as Python.
This commit is contained in:
parent
77d922c592
commit
a33f80b2ce
@ -274,7 +274,7 @@ def cmdline_handler(scriptname, argv):
|
|||||||
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")
|
||||||
|
|
||||||
parser.add_argument("-v", action="version", version=VERSION)
|
parser.add_argument("-v", "--version", action="version", version=VERSION)
|
||||||
|
|
||||||
parser.add_argument("--show-tracebacks", action="store_true",
|
parser.add_argument("--show-tracebacks", action="store_true",
|
||||||
help="show complete tracebacks for Hy exceptions")
|
help="show complete tracebacks for Hy exceptions")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user