From 6dbfc4502e4bcd63c69da032439384858ec48620 Mon Sep 17 00:00:00 2001 From: Atsushi SAKAI Date: Tue, 1 Dec 2015 12:08:25 +0900 Subject: [PATCH] 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 --- cloudkittyclient/common/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cloudkittyclient/common/utils.py b/cloudkittyclient/common/utils.py index c2e6b5d..5e1bb56 100644 --- a/cloudkittyclient/common/utils.py +++ b/cloudkittyclient/common/utils.py @@ -45,7 +45,9 @@ def arg(*args, **kwargs): kwargs['help'] += " Defaults to %s." % kwargs['default'] required = kwargs.get('required', False) 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 # to the options list positional options will appear to be backwards.