From 8c2522ede83cbec0b2d90542cfaffe0523abf7c1 Mon Sep 17 00:00:00 2001 From: salty Date: Mon, 10 Jun 2024 14:56:30 +0200 Subject: [PATCH] handle the version flag being set --- sb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sb.py b/sb.py index 43b006b..4f17adc 100644 --- a/sb.py +++ b/sb.py @@ -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()