Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/uu/true/locales/en-US.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ true-about = Returns true, a successful exit status.
Immediately returns with the exit status 0, except when invoked with one of the recognized
options. In those cases it will try to write the help or version text. Any IO error during this
operation causes the program to return 1 instead.

true-help-text = Print help information
true-version-text = Print version information
8 changes: 8 additions & 0 deletions src/uu/true/locales/fr-FR.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

true-about = Renvoie true, un code de sortie indiquant le succès.

Retourne immédiatement avec le code de sortie 0, sauf si l'une des options reconnues est utilisée.
Dans ce cas, il essaiera d'afficher l'aide ou la version. Une erreur d'entrée/sortie pendant cette
opération entraîne un retour avec le code de sortie 1.
true-help-text = Afficher l'aide
true-version-text = Afficher les informations de version
4 changes: 2 additions & 2 deletions src/uu/true/src/true.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ pub fn uu_app() -> Command {
.arg(
Arg::new("help")
.long("help")
.help("Print help information")
.help(get_message("true-help-text"))
.action(ArgAction::Help),
)
.arg(
Arg::new("version")
.long("version")
.help("Print version information")
.help(get_message("true-version-text"))
.action(ArgAction::Version),
)
}
Loading