1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

Merge pull request #1008 from wimh/od-help

od: fix od --help
This commit is contained in:
Alex Lyon 2016-12-04 20:02:29 -08:00 committed by GitHub
commit bb8e5b5824

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;
}