From ce8d095de72f3e831769d364c9c2328841ad80a5 Mon Sep 17 00:00:00 2001 From: DraftKinner <196864209+DraftKinner@users.noreply.github.com> Date: Mon, 10 Feb 2025 16:58:50 -0500 Subject: [PATCH] Fixed issue #9: Moved -v argument to mutually exclusive group --- zotify/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zotify/__main__.py b/zotify/__main__.py index 6afd13b..a260715 100644 --- a/zotify/__main__.py +++ b/zotify/__main__.py @@ -15,7 +15,9 @@ def main(): prog="zotify", description="A fast and customizable music and podcast downloader", ) - parser.add_argument( + group = parser.add_mutually_exclusive_group(required=True) + + group.add_argument( "-v", "--version", action="store_true", @@ -52,7 +54,6 @@ def main(): ) parser.add_argument("--username", type=str, default="", help="Account username") parser.add_argument("--token", type=str, default="", help="Account token") - group = parser.add_mutually_exclusive_group(required=True) group.add_argument( "urls", type=str,