The pwconv, pwunconv, grpconv, and grpunconv utils now have complete usage

message and report a usage error if needed.
This commit is contained in:
nekral-guest
2011-11-14 19:45:13 +00:00
parent 5852c4eb9b
commit 9811f7fd4a
6 changed files with 30 additions and 6 deletions
@@ -1 +1,7 @@
Usage: pwunconv
pwunconv: invalid option -- 'Z'
Usage: pwunconv [options]
Options:
-h, --help display this help message and exit
-R, --root CHROOT_DIR directory to chroot into
@@ -23,7 +23,7 @@ pwunconv -Z 2>tmp/usage.out && exit 1 || {
echo "OK"
echo -n "Check returned status ($status)..."
test "$status" = "1"
test "$status" = "2"
echo "OK"
echo "pwunconv reported:"
@@ -1 +1,7 @@
Usage: grpunconv
grpunconv: invalid option -- 'Z'
Usage: grpunconv [options]
Options:
-h, --help display this help message and exit
-R, --root CHROOT_DIR directory to chroot into
@@ -23,7 +23,7 @@ grpunconv -Z 2>tmp/usage.out && exit 1 || {
echo "OK"
echo -n "Check returned status ($status)..."
test "$status" = "1"
test "$status" = "2"
echo "OK"
echo "grpunconv reported:"
@@ -1 +1,7 @@
Usage: pwconv
pwconv: invalid option -- 'Z'
Usage: pwconv [options]
Options:
-h, --help display this help message and exit
-R, --root CHROOT_DIR directory to chroot into
@@ -1 +1,7 @@
Usage: grpconv
grpconv: invalid option -- 'Z'
Usage: grpconv [options]
Options:
-h, --help display this help message and exit
-R, --root CHROOT_DIR directory to chroot into