1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +00:00

od: fix od --help

This commit is contained in:
Wim Hueskes 2016-12-04 22:17:20 +01:00
parent a47d7d1a5b
commit 829ea9f445

View file

@ -138,7 +138,7 @@ fn create_getopts_options() -> getopts::Options {
("output BYTES bytes per output line. 32 is implied when BYTES is not \
specified."),
"BYTES");
opts.optflag("h", "help", "display this help and exit.");
opts.optflag("", "help", "display this help and exit.");
opts.optflag("", "version", "output version information and exit.");
opts.optflag("", "traditional", "compatibility mode with one input, offset and label.");
@ -277,7 +277,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
}
};
if matches.opt_present("h") {
if matches.opt_present("help") {
println!("{}", opts.usage(&USAGE));
return 0;
}