Fix help message
Fix Required to small case(required) Add period. This fix is coming from below patch set 1 comment. https://review.openstack.org/#/c/251331/ Change-Id: I614a8143ed6cba37dc726f3c85606daaf6a767be
This commit is contained in:
@@ -45,7 +45,9 @@ def arg(*args, **kwargs):
|
|||||||
kwargs['help'] += " Defaults to %s." % kwargs['default']
|
kwargs['help'] += " Defaults to %s." % kwargs['default']
|
||||||
required = kwargs.get('required', False)
|
required = kwargs.get('required', False)
|
||||||
if required:
|
if required:
|
||||||
kwargs['help'] += " Required."
|
kwargs['help'] += " required."
|
||||||
|
elif 'default' not in kwargs:
|
||||||
|
kwargs['help'] += "."
|
||||||
|
|
||||||
# Because of the sematics of decorator composition if we just append
|
# Because of the sematics of decorator composition if we just append
|
||||||
# to the options list positional options will appear to be backwards.
|
# to the options list positional options will appear to be backwards.
|
||||||
|
Reference in New Issue
Block a user