1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

add --help to script

(This used to be commit 5b20494aff3da9414ac0100220de96750c3f06a3)
This commit is contained in:
Gerald Carter 2003-08-27 14:44:36 +00:00
parent 35a42eebed
commit bdccf7fca8

View File

@ -35,6 +35,7 @@ sub usage {
print "convertSambaAccount <options>\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";