Cleanup cmd options
This commit is contained in:
parent
5aa80c6fc9
commit
bafe53e3a5
@ -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 = 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('--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()
|
cmd_options = cmd_option_set.parse_args()
|
||||||
|
|
||||||
if (cmd_options.print_version):
|
if (cmd_options.print_version):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user