mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
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>
This commit is contained in:
parent
b6b238ae43
commit
d4bb67cac0
1 changed files with 2 additions and 1 deletions
|
@ -78,7 +78,8 @@ class DocCLI(CLI):
|
||||||
self.parser.add_option("-j", "--json", action="store_true", default=False, dest='json_dump',
|
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.')
|
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',
|
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)
|
choices=C.DOCUMENTABLE_PLUGINS)
|
||||||
super(DocCLI, self).parse()
|
super(DocCLI, self).parse()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue