Fixed issue #9: Moved -v argument to mutually exclusive group
This commit is contained in:
parent
3b2dfe8c2f
commit
ce8d095de7
1 changed files with 3 additions and 2 deletions
|
@ -15,7 +15,9 @@ def main():
|
||||||
prog="zotify",
|
prog="zotify",
|
||||||
description="A fast and customizable music and podcast downloader",
|
description="A fast and customizable music and podcast downloader",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
group = parser.add_mutually_exclusive_group(required=True)
|
||||||
|
|
||||||
|
group.add_argument(
|
||||||
"-v",
|
"-v",
|
||||||
"--version",
|
"--version",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
|
@ -52,7 +54,6 @@ def main():
|
||||||
)
|
)
|
||||||
parser.add_argument("--username", type=str, default="", help="Account username")
|
parser.add_argument("--username", type=str, default="", help="Account username")
|
||||||
parser.add_argument("--token", type=str, default="", help="Account token")
|
parser.add_argument("--token", type=str, default="", help="Account token")
|
||||||
group = parser.add_mutually_exclusive_group(required=True)
|
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"urls",
|
"urls",
|
||||||
type=str,
|
type=str,
|
||||||
|
|
Loading…
Add table
Reference in a new issue