You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As default, clap prints its info in English, e.g.:
USAGE:
program
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
however, I would like to translate it to my country, for example:
Uso:
programa
Flags:
-h, --help Imprime ajuda da aplicação.
-V, --version Imprime versão da aplicação.
(also, notice the translation from USAGE to Uso and FLAGS to Flags). But, I would like to keep the default clap argument behavior, for example, the -v/--version would keep showing the application version without any extra implementation like this:
if cmd_args.is_present("version"){println!("{}", config::APP_VERSION);returnOk(());}
So, is there any clap option to change only the strings for translating but keep the original argument behavior?
TIA
The text was updated successfully, but these errors were encountered:
If you want to change whole help message, you have to implement the default clap behaviour too. To localize the other strings, we can combine it with already existing issue.
Hi.
As default, clap prints its info in English, e.g.:
however, I would like to translate it to my country, for example:
(also, notice the translation from
USAGE
toUso
andFLAGS
toFlags
). But, I would like to keep the default clap argument behavior, for example, the-v/--version
would keep showing the application version without any extra implementation like this:So, is there any clap option to change only the strings for translating but keep the original argument behavior?
TIA
The text was updated successfully, but these errors were encountered: