[New-bugs-announce] [issue26503] argparse with required field , not having new line separator in -help dispaly
Mohankumar
report at bugs.python.org
Mon Mar 7 07:18:16 EST 2016
New submission from Mohankumar:
We are using Python argsparse library here to display below --help message .
In --help option , new line option not handled correctly , Especially in "mandatory parameters" (required=True) better to place a new line before for better readability , Since it not having any separators like list brackets in "Non Mandatory parameters".
For example In below help , there must be a new line before "--protocol" and " --action" for better readability
Neutron firewall-rule-create [-h]
[-f {html,json,json,shell,table,value,yaml,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
[--request-format {json,xml}]
[--tenant-id TENANT_ID] [--name NAME]
[--description DESCRIPTION] [--shared]
[--source-ip-address SOURCE_IP_ADDRESS]
[--destination-ip-address DESTINATION_IP_ADDRESS]
[--source-port SOURCE_PORT]
[--destination-port DESTINATION_PORT]
[--enabled {True,False}] --protocol
{tcp,udp,icmp,any} --action
{allow,deny,reject}
----------
components: Library (Lib)
messages: 261297
nosy: mohankumar
priority: normal
severity: normal
status: open
title: argparse with required field , not having new line separator in -help dispaly
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26503>
_______________________________________
More information about the New-bugs-announce
mailing list