Mercurial > hg > lxmldump
comparison lxmldump.py @ 38:0e586b4ab62c
Cosmetic adjustments to help.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 25 May 2021 23:51:56 +0300 |
parents | e176fcfc0235 |
children | f53ea742b57f |
comparison
equal
deleted
inserted
replaced
37:e176fcfc0235 | 38:0e586b4ab62c |
---|---|
373 help=argparse.SUPPRESS) | 373 help=argparse.SUPPRESS) |
374 # help="output Anki compatible") | 374 # help="output Anki compatible") |
375 | 375 |
376 optparser.add_argument("-s", "--set", | 376 optparser.add_argument("-s", "--set", |
377 action=pkk_set_value, | 377 action=pkk_set_value, |
378 metavar="id=val", | 378 metavar="ID=STR", |
379 help='set value (see below)') | 379 help='set format string (see below)') |
380 | 380 |
381 optparser.add_argument("-n", "--normalize", | 381 optparser.add_argument("-n", "--normalize", |
382 dest="normalize", | 382 dest="normalize", |
383 action="store_true", | 383 action="store_true", |
384 help="output NFC normalized Unicode") | 384 help="output NFC normalized Unicode") |
389 help="annotate strings") | 389 help="annotate strings") |
390 | 390 |
391 optparser.add_argument("-i", "--indent", | 391 optparser.add_argument("-i", "--indent", |
392 dest="indent", | 392 dest="indent", |
393 type=int, choices=range(0, 32), default=4, | 393 type=int, choices=range(0, 32), default=4, |
394 metavar="n", | 394 metavar="N", |
395 help='set indentation level (default: %(default)s)') | 395 help='set indentation level (default: %(default)s)') |
396 | 396 |
397 optparser.add_argument("-p", "--debug", | 397 optparser.add_argument("-p", "--debug", |
398 dest="debug", | 398 dest="debug", |
399 action="store_true", | 399 action="store_true", |