From e3f03a7a4c0115f83d5428838b4294aa308d13cb Mon Sep 17 00:00:00 2001 From: AHReccese Date: Mon, 20 May 2024 15:13:43 +0330 Subject: [PATCH] add `-v` flag --- nava/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nava/__main__.py b/nava/__main__.py index d089a6e..00fb4af 100644 --- a/nava/__main__.py +++ b/nava/__main__.py @@ -29,9 +29,9 @@ def main(): ) parser.add_argument('--loop', help='sound play in loop', action='store_true', default=False) parser.add_argument('--version', help="version", action='store_true', default=False) - + parser.add_argument('-v', help="version", action='store_true', default=False) args = parser.parse_known_args()[0] - if args.version: + if args.version or args.v: print(NAVA_VERSION) elif args.filename or args.file: file_name = args.filename