We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cfbec3 commit dbe5b85Copy full SHA for dbe5b85
src/uu/whoami/src/whoami.rs
@@ -5,6 +5,7 @@
5
6
use clap::Command;
7
use std::ffi::OsString;
8
+use uucore::clap_localization::CommandHelpLocalization;
9
use uucore::display::println_verbatim;
10
use uucore::error::{FromIo, UResult};
11
use uucore::translate;
@@ -27,8 +28,9 @@ pub fn whoami() -> UResult<OsString> {
27
28
pub fn uu_app() -> Command {
29
Command::new(uucore::util_name())
30
.version(uucore::crate_version!())
- .help_template(uucore::localized_help_template(uucore::util_name()))
31
.about(translate!("whoami-about"))
32
.override_usage(uucore::util_name())
33
.infer_long_args(true)
34
+ .localize_help_and_version()
35
+ .localize_help_template()
36
}
0 commit comments