MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / get_allow_style_choices

Method get_allow_style_choices

cmd2/cmd2.py:1297–1300  ·  view source on GitHub ↗

Complete allow_style values.

(_cli_self: Cmd)

Source from the content-addressed store, hash-verified

1295 """Create the dictionary of user-settable parameters."""
1296
1297 def get_allow_style_choices(_cli_self: Cmd) -> Choices:
1298 """Complete allow_style values."""
1299 styles = [val.name.lower() for val in ru.AllowStyle]
1300 return Choices.from_values(styles)
1301
1302 def allow_style_type(value: str) -> ru.AllowStyle:
1303 """Convert a string value into an ru.AllowStyle."""

Callers

nothing calls this directly

Calls 1

from_valuesMethod · 0.80

Tested by

no test coverage detected