Skip to content

Commit 8cca959

Browse files
committed
Remove enums from example syntax
1 parent 7b66ebd commit 8cca959

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

awscli/clidocs.py

-11
Original file line numberDiff line numberDiff line change
@@ -629,10 +629,6 @@ def doc_option_example(self, arg_name, help_command, event_name, **kwargs):
629629
member, include_enum_values=False
630630
)
631631
doc.write('%s %s ...' % (example_type, example_type))
632-
if isinstance(member, StringShape) and member.enum:
633-
# If we have enum values, we can tell the user
634-
# exactly what valid values they can provide.
635-
self._write_valid_enums(doc, member.enum)
636632
doc.style.end_codeblock()
637633
doc.style.new_paragraph()
638634
elif cli_argument.cli_type_name not in SCALAR_TYPES:
@@ -643,13 +639,6 @@ def doc_option_example(self, arg_name, help_command, event_name, **kwargs):
643639
doc.style.end_codeblock()
644640
doc.style.new_paragraph()
645641

646-
def _write_valid_enums(self, doc, enum_values):
647-
doc.style.new_paragraph()
648-
doc.write("Where valid values are:\n")
649-
for value in enum_values:
650-
doc.write(" %s\n" % value)
651-
doc.write("\n")
652-
653642
def doc_output(self, help_command, event_name, **kwargs):
654643
doc = help_command.doc
655644
doc.style.h2('Output')

0 commit comments

Comments
 (0)