mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 14:52:41 +00:00
Added the aliases -h and -V for --help and --version to sleep
This commit is contained in:
parent
d0936d0082
commit
c399046c1a
1 changed files with 2 additions and 2 deletions
|
@ -22,8 +22,8 @@ fn main() {
|
|||
let program = args[0].clone();
|
||||
|
||||
let opts = ~[
|
||||
groups::optflag("", "help", "display this help and exit"),
|
||||
groups::optflag("", "version", "output version information and exit")
|
||||
groups::optflag("h", "help", "display this help and exit"),
|
||||
groups::optflag("V", "version", "output version information and exit")
|
||||
];
|
||||
let matches = match groups::getopts(args.tail(), opts) {
|
||||
Ok(m) => m,
|
||||
|
|
Loading…
Reference in a new issue