mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -07:00
parent
8388c89a29
commit
5e9b089ec2
3 changed files with 17 additions and 1 deletions
|
@ -281,8 +281,10 @@ def add_meta_options(parser):
|
|||
|
||||
def add_module_options(parser):
|
||||
"""Add options for commands that load modules"""
|
||||
|
||||
module_path = C.config.get_configuration_definition('DEFAULT_MODULE_PATH').get('default', '')
|
||||
parser.add_option('-M', '--module-path', dest='module_path', default=None,
|
||||
help="prepend colon-separated path(s) to module library (default=%s)" % C.DEFAULT_MODULE_PATH,
|
||||
help="prepend colon-separated path(s) to module library (default=%s)" % module_path,
|
||||
action="callback", callback=unfrack_paths, type='str')
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue