📝add help text to arguments

This commit is contained in:
Marc Koch 2021-09-09 20:53:19 +02:00
parent 2af37f96a4
commit dfa721e7c0
1 changed files with 8 additions and 2 deletions

View File

@ -65,19 +65,21 @@ class TazConfiguration:
Parse command line arguments.
"""
argparser = argparse.ArgumentParser(
description='Download taz e-paper'
description='Download taz e-paper',
)
argparser.add_argument(
'-i',
'--id',
action='store',
type=str,
help='Your taz-ID',
)
argparser.add_argument(
'-p',
'--password',
action='store',
type=str,
help='Your password',
)
argparser.add_argument(
'-f',
@ -85,23 +87,27 @@ class TazConfiguration:
action='store',
type=str,
choices=['pdf', 'epub', 'epubt', 'html', 'ascii', 'mobi', 'mobit'],
help='The e-paper format',
)
argparser.add_argument(
'-d',
'--download_folder',
action='store',
type=str,
help='The path to a folder where the e-paper should be stored',
)
argparser.add_argument(
'-l',
'--limit-requests',
action='store_true',
default=None
default=None,
help='Only query website for available newspaper if tomorrow\'s newspaper has not already been downloaded',
)
argparser.add_argument(
'--log_level',
action='store',
choices=['notset', 'debug', 'info', 'warning', 'error', 'critical'],
help='Set the log level',
)
return argparser.parse_args()