diff options
author | yanpuqing <yanpq@awcloud.com> | 2019-07-26 11:03:32 +0800 |
---|---|---|
committer | yanpuqing <yanpq@awcloud.com> | 2019-07-26 11:13:44 +0800 |
commit | f9d5a884c747998542c20c35e796012b875ac91f (patch) | |
tree | 604ac3689ed6f6ddc3e042bbfe25c145b72f4053 | |
parent | 48d4a0fdf23f1990532499f80d02c32d5799ced9 (diff) | |
download | cliff-f9d5a884c747998542c20c35e796012b875ac91f.tar.gz |
Modify the help message of `-c`/`--column` parameter
Some users ues `-c`/`--column` parameter in the wrong way, such as:
--column='ID Name'
--column='ID:Name'
--column='ID,Name'
The patch modifies the help message of `-c`/`--column` parameter
to indicate the correct use of the parameter.
Change-Id: I7a5082ea6cbb91e2c5d3348f5a52558aab09d820
Task: 29052
Story: 2004845
-rw-r--r-- | cliff/display.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cliff/display.py b/cliff/display.py index b4948de..73d68a8 100644 --- a/cliff/display.py +++ b/cliff/display.py @@ -71,7 +71,8 @@ class DisplayCommandBase(command.Command): default=[], dest='columns', metavar='COLUMN', - help='specify the column(s) to include, can be repeated', + help='specify the column(s) to include, can be ' + 'repeated to show multiple columns', ) for formatter in self._formatter_plugins: formatter.obj.add_argument_group(parser) |