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

Method format_options

samcli/commands/deploy/core/command.py:113–128  ·  view source on GitHub ↗
(self, ctx: Context, formatter: CommandHelpTextFormatter)

Source from the content-addressed store, hash-verified

111 )
112
113 def format_options(self, ctx: Context, formatter: CommandHelpTextFormatter) -> None: # type: ignore
114 # `ignore` is put in place here for mypy even though it is the correct behavior,
115 # as the `formatter_class` can be set in subclass of Command. If ignore is not set,
116 # mypy raises argument needs to be HelpFormatter as super class defines it.
117
118 self.format_description(formatter)
119 DeployCommand.format_examples(ctx, formatter)
120 DeployCommand.format_acronyms(formatter)
121
122 CoreCommand._format_options(
123 ctx=ctx,
124 params=self.get_params(ctx),
125 formatter=formatter,
126 formatting_options=OPTIONS_INFO,
127 write_rd_overrides={"col_max": COL_SIZE_MODIFIER},
128 )

Calls 4

_format_optionsMethod · 0.80
format_descriptionMethod · 0.45
format_examplesMethod · 0.45
format_acronymsMethod · 0.45

Tested by 1