mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-26 08:26:28 +00:00
Fixes 'choices referenced before assignment' error on line #287.
This commit is contained in:
@@ -280,6 +280,7 @@ class DocCLI(CLI):
|
||||
else:
|
||||
text.append(textwrap.fill(CLI.tty_ify(opt['description']), limit, initial_indent=opt_indent, subsequent_indent=opt_indent))
|
||||
|
||||
choices = ''
|
||||
if 'choices' in opt:
|
||||
choices = "(Choices: " + ", ".join(str(i) for i in opt['choices']) + ")"
|
||||
if 'default' in opt or not required:
|
||||
|
||||
Reference in New Issue
Block a user