Skip to main content

get_command_name

Converts a string into a command name by transforming it to lowercase and replacing underscores with hyphens.

def get_command_name(
name: str
) - > str

Converts a string into a normalized command-line format by lowercasing characters and replacing underscores with hyphens.

Parameters

NameTypeDescription
namestrThe raw string identifier or function name to be converted into a command name.

Returns

TypeDescription
strThe normalized command name string formatted for CLI usage.