fixed bug regarding the --nonverbose option (would take up URL argument)

This commit is contained in:
Kjistóf 2017-02-04 22:07:05 +01:00
parent a39bb01460
commit 6c5169573d
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ from functools import wraps
# parse arguments
parser = ArgumentParser(description='Download player-looped videos with youtube-dl & ffmpeg.')
parser.add_argument('-nv', '--nonverbose', help='Turn off non-critical messages to user.')
parser.add_argument('-nv', '--nonverbose', action='store_true', help='Turn off non-critical messages to user.')
parser.add_argument('-o', '--output', default=None, help='Specify name of the output file (use -e for extension).')
parser.add_argument('-e', '--extension', default='mp4', help='Set the container to use for the output.')
parser.add_argument('url', type=str, help='The URL of the site containing the video to download.')