forked from fcode/delarte
🚸 add documentation for user to arguments parser with -h flag
This commit is contained in:
parent
9f06e1e761
commit
3b220c6346
|
@ -7,7 +7,16 @@ class Parser(argparse.ArgumentParser):
|
|||
|
||||
def __init__(self):
|
||||
"""Generate a parser."""
|
||||
super().__init__()
|
||||
super().__init__(
|
||||
description="downloads Arte's videos with subtitles",
|
||||
epilog="examples:\n"
|
||||
"\tdelarte -h\t\t\t\t\t-> shows this help\n"
|
||||
"\tdelarte [url]\t\t\t\t\t-> shows available languages\n"
|
||||
"\tdelarte [url] -l [language]\t\t\t-> shows available resolutions\n"
|
||||
"\tdelarte [url] -l [language] -r [resolution]\t-> "
|
||||
"downloads Arte's video\n",
|
||||
formatter_class=argparse.RawTextHelpFormatter,
|
||||
)
|
||||
self.add_argument(
|
||||
"url",
|
||||
help="url of Arte movie's webpage",
|
||||
|
|
Loading…
Reference in New Issue
Block a user