Commit 3a21eacb6312e31ac4017c37313ea3a27f03560d

Authored by Georg Hopp
1 parent 299372fd

improve online help

Showing 1 changed file with 6 additions and 5 deletions
@@ -7,17 +7,18 @@ import getpass @@ -7,17 +7,18 @@ import getpass
7 from LdapTree import LdapTree 7 from LdapTree import LdapTree
8 8
9 def usage(): 9 def usage():
10 - print "Usage: " + sys.argv[0] + " OPTION...\n" 10 + print "Usage: " + sys.argv[0] + " ARGUMENT... [OPTION]...\n"
11 print "Create a tree representation of all DNs starting with a given base DN." 11 print "Create a tree representation of all DNs starting with a given base DN."
12 - print "Only simple binds to the directory with DN and password are supported."  
13 - print "If no password OPTION is given the password will be asked interactive." 12 + print "Supports simple and kerberos binds via GSSAPI."
  13 + print "If no password OPTION is given for simple binds the password will be"
  14 + print "asked interactive."
14 print "If no outfile the given the result will be written to stdout.\n" 15 print "If no outfile the given the result will be written to stdout.\n"
15 - print "Required OPTIONS are:\n" 16 + print "ARGUMENTS:\n"
16 print " {:30s} : {:s}".format('-H, --hosturi=URI', 'The URI to the ldap server to query in the form:') 17 print " {:30s} : {:s}".format('-H, --hosturi=URI', 'The URI to the ldap server to query in the form:')
17 print " {:30s} {:s}".format('', 'ldap[s]://host.uri[:port]') 18 print " {:30s} {:s}".format('', 'ldap[s]://host.uri[:port]')
18 print " {:30s} : {:s}".format('-D, --binddn=DN', 'The DN to use for the LDAP bind.') 19 print " {:30s} : {:s}".format('-D, --binddn=DN', 'The DN to use for the LDAP bind.')
19 print " {:30s} : {:s}\n".format('-b, --basedn=DN', 'The DN to start the tree with.') 20 print " {:30s} : {:s}\n".format('-b, --basedn=DN', 'The DN to start the tree with.')
20 - print "Optional OPTIONS are:\n" 21 + print "OPTIONS:\n"
21 print " {:30s} : {:s}".format('-h, --help', 'Show this help page') 22 print " {:30s} : {:s}".format('-h, --help', 'Show this help page')
22 print " {:30s} : {:s}".format('-p, --password=PASSWORD', 'The password to use for the LDAP bind.') 23 print " {:30s} : {:s}".format('-p, --password=PASSWORD', 'The password to use for the LDAP bind.')
23 print " {:30s} : {:s}".format('-o, --outfile=FILENAME', 'File to write the result to.') 24 print " {:30s} : {:s}".format('-o, --outfile=FILENAME', 'File to write the result to.')
Please register or login to post a comment