Issue 34724: argparse subparser help indent too short (original) (raw)

Issue34724

Created on 2018-09-18 16:49 by TakingItCasual, last changed 2022-04-11 14:59 by admin.

Messages (3)
msg325663 - (view) Author: TakingItCasual (TakingItCasual) Date: 2018-09-18 16:49
The help is indented too early for subparsers with long argument names. I'm currently using the ProperIndentParser class from the following gist to create my top level parser, which fixes the issue: https://gist.github.com/TakingItCasual/df40932dcc30012325bfed241bdaabd0
msg325665 - (view) Author: TakingItCasual (TakingItCasual) Date: 2018-09-18 17:03
More detailed explanation on the SO post I found the HelpFormatter class from: https://stackoverflow.com/q/32888815/2868017
msg325808 - (view) Author: paul j3 (paul.j3) * (Python triager) Date: 2018-09-19 22:20
Looks like I had my say on this in the Stackoverflow link (3 yrs ago).
History
Date User Action Args
2022-04-11 14:59:06 admin set github: 78905
2018-09-19 22:20:26 paul.j3 set nosy: + paul.j3messages: +
2018-09-18 17:03:31 TakingItCasual set messages: +
2018-09-18 16:49:27 TakingItCasual create