From 829ea9f4458f53565d495de4fb5a1e34e3e30684 Mon Sep 17 00:00:00 2001 From: Wim Hueskes Date: Sun, 4 Dec 2016 22:17:20 +0100 Subject: [PATCH] od: fix od --help --- src/od/od.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/od/od.rs b/src/od/od.rs index 488897a40..12a5fabea 100644 --- a/src/od/od.rs +++ b/src/od/od.rs @@ -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) -> i32 { } }; - if matches.opt_present("h") { + if matches.opt_present("help") { println!("{}", opts.usage(&USAGE)); return 0; }