summaryrefslogtreecommitdiffstats
path: root/ipalib/parameters.py
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2011-12-21 14:44:58 +0100
committerMartin Kosek <mkosek@redhat.com>2012-01-12 09:43:13 +0100
commit2188dae0c91712015cd5947fc9d61597ec2e95fa (patch)
treece7f033e5d03e4bfb99699a62f077bbab86e3249 /ipalib/parameters.py
parent1f36ab1b780f488869f2880b79a3127840438cc9 (diff)
downloadfreeipa-2188dae0c91712015cd5947fc9d61597ec2e95fa.tar.gz
freeipa-2188dae0c91712015cd5947fc9d61597ec2e95fa.tar.xz
freeipa-2188dae0c91712015cd5947fc9d61597ec2e95fa.zip
Improve CLI output for complex commands
Complex commands may have many options or non-standard output. This patch adds 2 improvements to handle these commands better: 1) Add "option_group" parameter attribute Make command help more readable by specifying an option group for the parameter. All parameters in the same option group are then placed to one named option group 2) Allow nested entries in the output Current CLI output module cannot handle a list of nested entries (dictionaries) contained in an entry attribute. Make sure they are printed properly (with indentation) https://fedorahosted.org/freeipa/ticket/2082
Diffstat (limited to 'ipalib/parameters.py')
-rw-r--r--ipalib/parameters.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py
index 22144b7cb..be210864f 100644
--- a/ipalib/parameters.py
+++ b/ipalib/parameters.py
@@ -384,6 +384,7 @@ class Param(ReadOnly):
('csv', bool, False),
('csv_separator', str, ','),
('csv_skipspace', bool, True),
+ ('option_group', unicode, None),
# The 'default' kwarg gets appended in Param.__init__():
# ('default', self.type, None),