MCPcopy Create free account
hub / github.com/aws/aws-sam-cli / format_options

Method format_options

samcli/commands/logs/core/command.py:92–106  ·  view source on GitHub ↗
(self, ctx: Context, formatter: CommandHelpTextFormatter)

Source from the content-addressed store, hash-verified

90 )
91
92 def format_options(self, ctx: Context, formatter: CommandHelpTextFormatter) -> None: # type: ignore
93 # `ignore` is put in place here for mypy even though it is the correct behavior,
94 # as the `formatter_class` can be set in subclass of Command. If ignore is not set,
95 # mypy raises argument needs to be HelpFormatter as super class defines it.
96
97 self.format_description(formatter)
98 LogsCommand.format_examples(ctx, formatter)
99
100 CoreCommand._format_options(
101 ctx=ctx,
102 params=self.get_params(ctx),
103 formatter=formatter,
104 formatting_options=OPTIONS_INFO,
105 write_rd_overrides={"col_max": COL_SIZE_MODIFIER},
106 )

Callers 1

Calls 3

_format_optionsMethod · 0.80
format_descriptionMethod · 0.45
format_examplesMethod · 0.45

Tested by 1