1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

small tweaks to --help for hacking/test-module

This commit is contained in:
Michael DeHaan 2012-07-23 19:33:26 -04:00
parent fc96b88205
commit 738cea9c93

View file

@ -47,12 +47,12 @@ def parse():
:return : (options, args)""" :return : (options, args)"""
parser = optparse.OptionParser() parser = optparse.OptionParser()
parser.usage = "%prog [options] (-h for help)" parser.usage = "%prog -[options] (-h for help)"
parser.add_option('-m', '--module-path', dest='module_path', parser.add_option('-m', '--module-path', dest='module_path',
help="path of module to execute") help="REQUIRED: full path of module source to execute")
parser.add_option('-a', '--args', dest='module_args', default="", parser.add_option('-a', '--args', dest='module_args', default="",
help="module arguments") help="module argument string")
parser.add_option('-D', '--debugger', dest='debugger', parser.add_option('-D', '--debugger', dest='debugger',
help="path to python debugger (e.g. /usr/bin/pdb)") help="path to python debugger (e.g. /usr/bin/pdb)")
options, args = parser.parse_args() options, args = parser.parse_args()