Mercurial > getan
changeset 542:525ac205dca2
improve usage message & simply code
* Simplyied code by removing `dest` and `metavar` for add_argument
where it was not necessary because it was already the default if those
parameters are not given.
author | Magnus Schieder <mschieder@intevation.de> |
---|---|
date | Fri, 31 Jan 2020 14:30:52 +0100 |
parents | a12301b219fa |
children | 3ef4825fe65d |
files | getan/main.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/getan/main.py Thu Jan 30 10:48:21 2020 +0100 +++ b/getan/main.py Fri Jan 31 14:30:52 2020 +0100 @@ -59,7 +59,7 @@ parser.add_argument('-d', '--debug', action='store_const', dest='loglevel', default=logging.NOTSET, const=logging.DEBUG, help='Enable debung mode') - parser.add_argument('-l', '--logfile', dest='logfile', metavar='FILE', + parser.add_argument('-l', '--logfile', help='''write log information to FILE [default: %(default)s]''', default='getan.log')