1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-23 19:55:38 +01:00

Synchronize manual with --help text

This commit is contained in:
Olof Johansson 2015-03-21 18:20:02 +01:00
parent d58ce64ec8
commit 2265d544b9
2 changed files with 36 additions and 11 deletions

View File

@ -267,6 +267,9 @@ def main():
parser = OptionParser(usage=usage, version=__version__)
parser.add_option("-o", "--output",
metavar="OUTPUT", help="outputs to the given filename")
parser.add_option("-f", "--force",
action="store_true", dest="force", default=False,
help="overwrite if file exists already")
parser.add_option("-r", "--resume",
action="store_true", dest="resume", default=False,
help="resume a download (RTMP based ones)")
@ -274,11 +277,11 @@ def main():
action="store_true", dest="live", default=False,
help="enable for live streams (RTMP based ones)")
parser.add_option("-s", "--silent",
action="store_true", dest="silent", default=False)
action="store_true", dest="silent", default=False,
help="be less verbose")
parser.add_option("-v", "--verbose",
action="store_true", dest="verbose", default=False)
parser.add_option("-f", "--force",
action="store_true", dest="force", default=False)
action="store_true", dest="verbose", default=False,
help="explain what is going on")
parser.add_option("-q", "--quality", default=0,
metavar="quality", help="choose what format to download based on bitrate / video resolution."
"it will download the best format by default")
@ -308,7 +311,7 @@ def main():
parser.add_option("-P", "--preferred", default=None,
metavar="preferred", help="preferred download method (rtmp, hls or hds)")
parser.add_option("--exclude", dest="exclude", default=None,
metavar="WORD,WORD2", help="exclude videos with the WORD(s) in the filename. comma seperated.")
metavar="WORD1,WORD2,...", help="exclude videos with the WORD(s) in the filename. comma separated.")
(options, args) = parser.parse_args()
if not args:
parser.print_help()

View File

@ -19,10 +19,22 @@ to do itself.
=head2 OPTIONS
=head3 --version
Show the program's version number and exit.
=head3 --help -h
Show description of options.
=head3 --output=filename -o filename
Outputs to the given filename.
=head3 --force -f
Overwrite the output file if it exists already.
=head3 --resume -r
Resume a download.
@ -35,6 +47,11 @@ Enable support for live streams. (rtmp based ones)
Be less verbose.
=head3 --verbose -v
Explain what is going on, including HTTP requests and other useful
debugging data.
=head3 --quality=quality -q quality
Choose what format to download. It will download the best format
@ -44,6 +61,10 @@ by default.
Allow given quality (as above) to differ by an amount.
=head3 --list-quality
List the available qualities for a video.
=head3 --hls -H
Use HTTP Live Streaming when downloading.
@ -72,17 +93,18 @@ Download thumbnail from the site if available.
Try to download all episodes.
=head3 --all-last=NN
Get last NN episodes instead of all episodes, when used with
--all-episodes.
=head3 -P preferred, --preferred=preferred
Preferred download method.
=head3 --version
=head3 --exclude=WORD1,WORD2,...
Show the program's version number and exit.
=head3 --help -h
Show description of options.
Exclude videos with the WORD(s) in the filename. Comma separated.
=head1 SUPPORTED SERVICES