From bdccf7fca84e0fd6c43c89f3337a316f22109579 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 27 Aug 2003 14:44:36 +0000 Subject: add --help to script (This used to be commit 5b20494aff3da9414ac0100220de96750c3f06a3) --- examples/LDAP/convertSambaAccount | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'examples/LDAP/convertSambaAccount') diff --git a/examples/LDAP/convertSambaAccount b/examples/LDAP/convertSambaAccount index 61e80e1b7b..d2770c75a6 100755 --- a/examples/LDAP/convertSambaAccount +++ b/examples/LDAP/convertSambaAccount @@ -35,6 +35,7 @@ sub usage { print "convertSambaAccount \n"; print "Options:\n"; + print " --help print this help message\n"; print " --input input LDIF filename\n"; print " --output output LDIF filename\n"; print " --sid domain SID\n"; @@ -77,7 +78,8 @@ sub usage { ## process command line args ## -$result = GetOptions(\%options, +$result = GetOptions(\%options, + "help", "input=s", "output=s", "sid=s", @@ -88,6 +90,11 @@ if (!$result && ($#ARGV != -1)) { exit 1; } +if ( defined($options{'help'}) ) { + usage(); + exit 0; +} + if ( !defined( $options{'sid'} ) ) { print "You must provide a domain sid\n"; -- cgit