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