diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-11-07 02:29:58 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-11-07 02:32:36 +0530 |
commit | 46d09f87072e112c363f4a573966d8e48a788562 (patch) | |
tree | c945b8e19bf82a19137008e02d8a1aee6f41ca8b /yt_dlp/options.py | |
parent | db4678e448d6e7da9743f4028c94b540fcafc528 (diff) | |
download | hypervideo-pre-46d09f87072e112c363f4a573966d8e48a788562.tar.lz hypervideo-pre-46d09f87072e112c363f4a573966d8e48a788562.tar.xz hypervideo-pre-46d09f87072e112c363f4a573966d8e48a788562.zip |
[cleanup] Lint and misc cleanup
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r-- | yt_dlp/options.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index d3dfee820..bee867aa9 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -294,9 +294,10 @@ def create_parser(): aliases = (x if x.startswith('-') else f'--{x}' for x in map(str.strip, aliases.split(','))) try: + args = [f'ARG{i}' for i in range(nargs)] alias_group.add_option( - *aliases, help=opts, nargs=nargs, dest=parser.ALIAS_DEST, type='str' if nargs else None, - metavar=' '.join(f'ARG{i}' for i in range(nargs)), action='callback', + *aliases, nargs=nargs, dest=parser.ALIAS_DEST, type='str' if nargs else None, + metavar=' '.join(args), help=opts.format(*args), action='callback', callback=_alias_callback, callback_kwargs={'opts': opts, 'nargs': nargs}) except Exception as err: raise optparse.OptionValueError(f'wrong {opt_str} formatting; {err}') @@ -549,11 +550,11 @@ def create_parser(): selection.add_option( '--min-filesize', metavar='SIZE', dest='min_filesize', default=None, - help='Do not download any videos smaller than SIZE, e.g. 50k or 44.6M') + help='Abort download if filesize is smaller than SIZE, e.g. 50k or 44.6M') selection.add_option( '--max-filesize', metavar='SIZE', dest='max_filesize', default=None, - help='Do not download any videos larger than SIZE, e.g. 50k or 44.6M') + help='Abort download if filesize if larger than SIZE, e.g. 50k or 44.6M') selection.add_option( '--date', metavar='DATE', dest='date', default=None, |