mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
pinky: don't include short flag in help
This commit is contained in:
parent
ee1ae64970
commit
32cadbc715
1 changed files with 8 additions and 0 deletions
|
@ -36,6 +36,7 @@ mod options {
|
||||||
pub const OMIT_NAME_HOST: &str = "omit_name_host";
|
pub const OMIT_NAME_HOST: &str = "omit_name_host";
|
||||||
pub const OMIT_NAME_HOST_TIME: &str = "omit_name_host_time";
|
pub const OMIT_NAME_HOST_TIME: &str = "omit_name_host_time";
|
||||||
pub const USER: &str = "user";
|
pub const USER: &str = "user";
|
||||||
|
pub const HELP: &str = "help";
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_long_usage() -> String {
|
fn get_long_usage() -> String {
|
||||||
|
@ -180,6 +181,13 @@ pub fn uu_app<'a>() -> Command<'a> {
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.multiple_occurrences(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 {
|
struct Pinky {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue