From d4bb67cac07e6eb5f978b2b5c792361a1573a045 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Tue, 6 Nov 2018 18:48:59 +0530 Subject: [PATCH] ansible-doc: list types of plugin available (#47055) This fix allows user to view types of plugin available in ansible-doc command. Signed-off-by: Abhijeet Kasurde --- lib/ansible/cli/doc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/cli/doc.py b/lib/ansible/cli/doc.py index edefaf041d3..386f8490140 100644 --- a/lib/ansible/cli/doc.py +++ b/lib/ansible/cli/doc.py @@ -78,7 +78,8 @@ class DocCLI(CLI): self.parser.add_option("-j", "--json", action="store_true", default=False, dest='json_dump', help='**For internal testing only** Dump json metadata for all plugins.') self.parser.add_option("-t", "--type", action="store", default='module', dest='type', type='choice', - help='Choose which plugin type (defaults to "module")', + help='Choose which plugin type (defaults to "module"). ' + 'Available plugin types are : {0}'.format(C.DOCUMENTABLE_PLUGINS), choices=C.DOCUMENTABLE_PLUGINS) super(DocCLI, self).parse()