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 <akasurde@redhat.com>
pull/48167/head
Abhijeet Kasurde 6 years ago committed by John R Barker
parent b6b238ae43
commit d4bb67cac0

@ -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()

Loading…
Cancel
Save