# HG changeset patch # User Magnus Schieder # Date 1580477452 -3600 # Node ID 525ac205dca237687c639d004c6ab58320ee1b6e # Parent a12301b219fa468a32aee90399294538f32cc46e 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. diff -r a12301b219fa -r 525ac205dca2 getan/main.py --- 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')