mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-19 03:10:22 -07:00
Wired in Michael's usage string optparse style.
This commit is contained in:
parent
6749903e57
commit
f840c0d167
2 changed files with 3 additions and 1 deletions
|
@ -284,7 +284,9 @@ def make_parser(add_options, constants=C, usage="", output_opts=False, runas_opt
|
|||
)
|
||||
options.update(add_options)
|
||||
|
||||
#NOTE: optparse deprecated in Python >= 2.7.
|
||||
parser = optparse.OptionParser()
|
||||
parser.set_usage(usage)
|
||||
names = sorted(options.keys())
|
||||
for n in names:
|
||||
data = options[n].copy()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue