mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
@@ -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')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user