accept short option names for some options
authorPeter Marschall <peter@adpm.de>
Sat, 05 Mar 2011 18:50:27 +0100
changeset 18 db47ba64ebda
parent 17 669085d93aa3
child 19 18e71da965ff
accept short option names for some options Accept short name equivalents like in ldap... commands for 'server', 'basedn' and 'binddn'.
shelldap
--- a/shelldap	Sat Mar 05 17:46:57 2011 +0100
+++ b/shelldap	Sat Mar 05 18:50:27 2011 +0100
@@ -1693,9 +1693,9 @@
 $conf = load_config() || {};
 Getopt::Long::GetOptions(
 	$conf, 
-	'server=s',
-	'binddn=s',
-	'basedn=s',
+	'server|H=s',
+	'binddn|D=s',
+	'basedn|b=s',
 	'cacheage=i',
 	'timeout=i',
 	'tls_cacert=s',