Skip to main content

localized_command

Function localized_command 

Source
pub fn localized_command() -> Command
Expand description

Build a clap Command with about and per-argument help overridden by t! for the current locale. If a cli.about or cli.help.<arg_id> key resolves to a translated string, it replaces the English source doc; if the key is returned as-is (no translation), the English source doc is kept. Must be called after the locale is set (before argument parsing).