I have the following code:
parser = argparse.ArgumentParser(description=\'Postfix Queue Administration Tool\',
prog=\'pqa\',
usage=\'%(prog)s
Is the problem that
is repeated in the help line?:
-d , --domain
The argparse HelpFormatter does not give the user much control over this part of the display. As you have shown, you can set the usage line, the help text, and the metavar.
You would have to subclass the HelpFormatter, and change one of the functions to produce something like:
-d, --domain
It doesn't look like a complicated change, probably to the HelpFormatter._format_action_invocation
method. But you need to be more explicit about what you want.