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:
Kodi Arfer 2016-09-29 09:18:04 -07:00
parent 77d922c592
commit a33f80b2ce

View File

@ -274,7 +274,7 @@ def cmdline_handler(scriptname, argv):
parser.add_argument("--spy", action="store_true",
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",
help="show complete tracebacks for Hy exceptions")