From 32cadbc715aa977fa941b4d34c36883fb04bc5bb Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Sat, 19 Mar 2022 23:04:20 +0100 Subject: [PATCH] pinky: don't include short flag in help --- src/uu/pinky/src/pinky.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/uu/pinky/src/pinky.rs b/src/uu/pinky/src/pinky.rs index b5ad2c5c9..437c20cf5 100644 --- a/src/uu/pinky/src/pinky.rs +++ b/src/uu/pinky/src/pinky.rs @@ -36,6 +36,7 @@ mod options { pub const OMIT_NAME_HOST: &str = "omit_name_host"; pub const OMIT_NAME_HOST_TIME: &str = "omit_name_host_time"; pub const USER: &str = "user"; + pub const HELP: &str = "help"; } fn get_long_usage() -> String { @@ -180,6 +181,13 @@ pub fn uu_app<'a>() -> Command<'a> { .takes_value(true) .multiple_occurrences(true), ) + .arg( + // Redefine the help argument to not include the short flag + // since that conflicts with omit_project_file. + Arg::new(options::HELP) + .long(options::HELP) + .help("Print help information"), + ) } struct Pinky {