summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/rd-user6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/rd-user b/utils/rd-user
index c891985..5b9d479 100755
--- a/utils/rd-user
+++ b/utils/rd-user
@@ -31,7 +31,7 @@ if ($> != 0 ) {
}
my $num_args = $#ARGV + 1;
-if ($num_args != 2) {
+if ($num_args != 2 && $num_args !=3) {
print STDERR "Usage: rd-user (check|add|remove) <username> [ fullname ]\n";
exit 1;
}
@@ -65,6 +65,10 @@ if(defined $dbh) {
print int($href->{cnt}) . " " . $href->{name} . " deleted\n";
}
}
+ } else {
+ print STDERR "unknown command\n";
+ RHRD::rddb::closedb($dbh);
+ exit 1;
}
RHRD::rddb::closedb($dbh);