summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig/usermgmt/userdel
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2013-04-22 05:02:34 +0000
committerdteske <dteske@FreeBSD.org>2013-04-22 05:02:34 +0000
commit6089bf07c71a6fd15cb36b50f7801a4b09037460 (patch)
tree30a8b20faa65aa281c83e178629b4b01903d9fef /usr.sbin/bsdconfig/usermgmt/userdel
parent78339bf7f3a0cd62b1bcf122e6ca71e724ee1df9 (diff)
downloadFreeBSD-src-6089bf07c71a6fd15cb36b50f7801a4b09037460.zip
FreeBSD-src-6089bf07c71a6fd15cb36b50f7801a4b09037460.tar.gz
Add new flags `-d' (sets debug=1) and `-D file' (sets debugFile) and
improve debugging initialization. Also fixup USAGE statements while we're here. Also, change initialization of main program to _not_ change working directory, allowing the debugFile to be relative without confusion.
Diffstat (limited to 'usr.sbin/bsdconfig/usermgmt/userdel')
-rwxr-xr-xusr.sbin/bsdconfig/usermgmt/userdel4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bsdconfig/usermgmt/userdel b/usr.sbin/bsdconfig/usermgmt/userdel
index 4a7e2be..02f6e65 100755
--- a/usr.sbin/bsdconfig/usermgmt/userdel
+++ b/usr.sbin/bsdconfig/usermgmt/userdel
@@ -1,7 +1,7 @@
#!/bin/sh
#-
# Copyright (c) 2012 Ron McDowell
-# Copyright (c) 2012 Devin Teske
+# Copyright (c) 2012-2013 Devin Teske
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -50,7 +50,7 @@ ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" )
#
# Process command-line arguments
#
-while getopts hSX flag; do
+while getopts dD:hSX flag; do
case "$flag" in
h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";;
esac
OpenPOWER on IntegriCloud