Merge pull request #17202 from chouseknecht/devel

Local variable *choices* referenced before assignment
This commit is contained in:
Chris Houseknecht 2016-08-24 10:57:49 -04:00 committed by GitHub
commit f717786949

View file

@ -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: