Skip to content

Commit b23b0ab

Browse files
authored
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
1 parent 5144000 commit b23b0ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyff/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def parse_options(program, docs):
536536
if o in ('-h', '--help'):
537537
print(docs)
538538
sys.exit(0)
539-
elif o in ('--version',):
539+
elif o in ('-v', '--version'):
540540
print("{} version {}".format(program, pyff_version))
541541
sys.exit(0)
542542
elif o in ('-A', '--alias'):

0 commit comments

Comments
 (0)