Show help if specifying invalid CLI subcommand
This commit is contained in:
parent
eebfbc8c41
commit
7e8af03933
@ -1,5 +1,5 @@
|
||||
# pyRCV2: Preferential vote counting
|
||||
# Copyright © 2020 Lee Yingtong Li (RunasSudo)
|
||||
# Copyright © 2020–2021 Lee Yingtong Li (RunasSudo)
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
@ -27,3 +27,5 @@ args = parser.parse_args()
|
||||
|
||||
if args.subcommand == 'stv':
|
||||
stv.main(args)
|
||||
else:
|
||||
parser.print_help()
|
||||
|
Reference in New Issue
Block a user