Skip to content

Commit dbe5b85

Browse files
committed
whoami: Apply localization update
1 parent 3cfbec3 commit dbe5b85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/uu/whoami/src/whoami.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
use clap::Command;
77
use std::ffi::OsString;
8+
use uucore::clap_localization::CommandHelpLocalization;
89
use uucore::display::println_verbatim;
910
use uucore::error::{FromIo, UResult};
1011
use uucore::translate;
@@ -27,8 +28,9 @@ pub fn whoami() -> UResult<OsString> {
2728
pub fn uu_app() -> Command {
2829
Command::new(uucore::util_name())
2930
.version(uucore::crate_version!())
30-
.help_template(uucore::localized_help_template(uucore::util_name()))
3131
.about(translate!("whoami-about"))
3232
.override_usage(uucore::util_name())
3333
.infer_long_args(true)
34+
.localize_help_and_version()
35+
.localize_help_template()
3436
}

0 commit comments

Comments
 (0)