From c525b45d6acf8c24acdb96a6efc7a7e5d590f821 Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Sat, 3 Jul 2021 16:07:09 +0200 Subject: [PATCH] Fixed version print --- adl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adl.py b/adl.py index d68d7e5..02acd78 100644 --- a/adl.py +++ b/adl.py @@ -19,7 +19,7 @@ ap.add_argument("-p", "--player", required=False, help="Define player used for streaming. Ex: \033[0;36mpyadl -p mpv\033[0m") ap.add_argument("-d", "--download", required=False, type=bool, nargs='?', const=True, default=False, help="Download instead of streaming") -ap.add_argument("-v", "--version", required=False, +ap.add_argument("-v", "--version", required=False, nargs='?', const=True, help="Display version and exit") args = vars(ap.parse_args()) @@ -35,7 +35,7 @@ if args["download"]: msg = "downloading" if args["version"]: - print("version: 0.1") + print("Pyadl version 0.1") sys.exit() # colored print