Skip to content

Commit 613cb8b

Browse files
hssyookdaily
authored andcommitted
Remove enums from example syntax
1 parent 5fba17e commit 613cb8b

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

awscli/clidocs.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -638,10 +638,6 @@ def doc_option_example(self, arg_name, help_command, event_name, **kwargs):
638638
member, include_enum_values=False
639639
)
640640
doc.write('%s %s ...' % (example_type, example_type))
641-
if isinstance(member, StringShape) and member.enum:
642-
# If we have enum values, we can tell the user
643-
# exactly what valid values they can provide.
644-
self._write_valid_enums(doc, member.enum)
645641
doc.style.end_codeblock()
646642
doc.style.new_paragraph()
647643
elif cli_argument.cli_type_name not in SCALAR_TYPES:
@@ -652,13 +648,6 @@ def doc_option_example(self, arg_name, help_command, event_name, **kwargs):
652648
doc.style.end_codeblock()
653649
doc.style.new_paragraph()
654650

655-
def _write_valid_enums(self, doc, enum_values):
656-
doc.style.new_paragraph()
657-
doc.write("Where valid values are:\n")
658-
for value in enum_values:
659-
doc.write(" %s\n" % value)
660-
doc.write("\n")
661-
662651
def doc_output(self, help_command, event_name, **kwargs):
663652
doc = help_command.doc
664653
doc.style.h2('Output')

0 commit comments

Comments
 (0)