From bafe53e3a52eb4823d3df7cc1b939b6f0fff7b99 Mon Sep 17 00:00:00 2001 From: 20xd6 <20xd6@airmail.cc> Date: Thu, 14 Sep 2023 10:28:14 -0400 Subject: [PATCH] Cleanup cmd options --- yt2mp3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt2mp3.py b/yt2mp3.py index a9d34f7..c574ce5 100755 --- a/yt2mp3.py +++ b/yt2mp3.py @@ -9,7 +9,7 @@ help_epilog = ("This script is very dependent on yt-dlp.\n"+ cmd_option_set = argparse.ArgumentParser(description='Backup YouTube channels.', epilog=help_epilog) cmd_option_set.add_argument('--version', '-v', dest='print_version', action='store_true', help='Print the current version number.') -cmd_option_set.add_argument(dest='url_to_convert', help="The URL of the YouTube video you're converting to a local mp3.") +cmd_option_set.add_argument(dest='url_to_convert', default='', metavar="YT URL", nargs=argparse.REMAINDER, help="The URL of the YouTube video you're converting to a local mp3.") cmd_options = cmd_option_set.parse_args() if (cmd_options.print_version):