diff options
author | Doug Hellmann <doug.hellmann@dreamhost.com> | 2012-04-28 19:26:24 -0400 |
---|---|---|
committer | Doug Hellmann <doug.hellmann@dreamhost.com> | 2012-04-28 19:26:24 -0400 |
commit | 21ffad9b2c370b6398148d9cf8492ad795286b7c (patch) | |
tree | d9a475ee2d7e3d55b00abb872c60e53e3d351c24 /cliff | |
parent | 8ba10466ffafd6f9c9fb15a42bcd83b92c3c655a (diff) | |
download | cliff-21ffad9b2c370b6398148d9cf8492ad795286b7c.tar.gz |
clean up help text for the other formatters
Diffstat (limited to 'cliff')
-rw-r--r-- | cliff/formatters/table.py | 6 | ||||
-rw-r--r-- | cliff/lister.py | 2 | ||||
-rw-r--r-- | cliff/show.py | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/cliff/formatters/table.py b/cliff/formatters/table.py index 21960a8..b7e978a 100644 --- a/cliff/formatters/table.py +++ b/cliff/formatters/table.py @@ -16,12 +16,16 @@ class TableFormatter(ListFormatter, SingleFormatter): } def add_argument_group(self, parser): - group = parser.add_argument_group('Table Formatter') + group = parser.add_argument_group( + title='table formatter', + description='Pretty-print output in a table', + ) group.add_argument( '-c', '--column', action='append', default=[], dest='columns', + metavar='COLUMN', help='specify the column(s) to include, can be repeated', ) diff --git a/cliff/lister.py b/cliff/lister.py index f84c415..d2c1aad 100644 --- a/cliff/lister.py +++ b/cliff/lister.py @@ -33,7 +33,7 @@ class Lister(Command): def get_parser(self, prog_name): parser = super(Lister, self).get_parser(prog_name) formatter_group = parser.add_argument_group( - title='Output Formatters', + title='output formatters', description='List output formatter options', ) formatter_choices = sorted(self.formatters.keys()) diff --git a/cliff/show.py b/cliff/show.py index 9f77703..93c48ce 100644 --- a/cliff/show.py +++ b/cliff/show.py @@ -33,7 +33,7 @@ class ShowOne(Command): def get_parser(self, prog_name): parser = super(ShowOne, self).get_parser(prog_name) formatter_group = parser.add_argument_group( - title='Output Formatters', + title='output formatters', description='List output formatter options', ) formatter_choices = sorted(self.formatters.keys()) |