Show help if specifying invalid CLI subcommand

This commit is contained in:
RunasSudo 2021-05-16 18:48:33 +10:00
parent eebfbc8c41
commit 7e8af03933
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
1 changed files with 3 additions and 1 deletions

View File

@ -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()