From b23b0ab028a07de28bd2d3aa965bdc1899270acf Mon Sep 17 00:00:00 2001
From: Alan Buxey <alan.buxey@gmail.com>
Date: Mon, 23 Sep 2024 22:21:06 +0100
Subject: [PATCH] Update constants.py to allow -v to work

trivial fix to a bug. for years the argument of -h has said that you can use -v or --version to print the version of pyFF - well, now you can
---
 src/pyff/constants.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pyff/constants.py b/src/pyff/constants.py
index 469782ce..c6b20cd8 100644
--- a/src/pyff/constants.py
+++ b/src/pyff/constants.py
@@ -536,7 +536,7 @@ def parse_options(program, docs):
             if o in ('-h', '--help'):
                 print(docs)
                 sys.exit(0)
-            elif o in ('--version',):
+            elif o in ('-v', '--version'):
                 print("{} version {}".format(program, pyff_version))
                 sys.exit(0)
             elif o in ('-A', '--alias'):