Skip to content

Commit

Permalink
handle the version flag being set
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Jun 10, 2024
1 parent 3223367 commit 8c2522e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sb.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,9 @@ def add_verbosity_argument(arg_parser):

args = parser.parse_args()
# Call the appropriate handler function
if 'func' in args:
if args.version:
handle_version()
elif 'func' in args:
args.func(args)
else:
parser.print_help()

0 comments on commit 8c2522e

Please sign in to comment.