From 90b3ad4bd22d841d13c8ee29697d97c41fe3daed Mon Sep 17 00:00:00 2001 From: Arcterus Date: Wed, 18 Dec 2013 17:08:53 -0800 Subject: [PATCH] Added the aliases -h and -V for --help and --version to rmdir --- rmdir/rmdir.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rmdir/rmdir.rs b/rmdir/rmdir.rs index 1f9e3f7ee..ae299197c 100644 --- a/rmdir/rmdir.rs +++ b/rmdir/rmdir.rs @@ -23,8 +23,8 @@ fn main() { groups::optflag("", "ignore-fail-on-non-empty", "ignore each failure that is solely because a directory is non-empty"), groups::optflag("p", "parents", "remove DIRECTORY and its ancestors; e.g., 'rmdir -p a/b/c' is similar to rmdir a/b/c a/b a"), groups::optflag("v", "verbose", "output a diagnostic for every directory processed"), - groups::optflag("", "help", "print this help and exit"), - groups::optflag("", "version", "output version information and exit") + groups::optflag("h", "help", "print this help and exit"), + groups::optflag("V", "version", "output version information and exit") ]; let matches = match groups::getopts(args.tail(), opts) { Ok(m) => m,