From a33f80b2ce45a0c2f633ab13dce79852ee6dfdbf Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Thu, 29 Sep 2016 09:18:04 -0700 Subject: [PATCH] Allow --version as a synonym for -v --version is a GNU standard that is also common for non-GNU programs, such as Python. --- hy/cmdline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hy/cmdline.py b/hy/cmdline.py index 195a5bc..35f75c6 100644 --- a/hy/cmdline.py +++ b/hy/cmdline.py @@ -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")