Commit 0867968de7a971482df9a5f1be100b9a5ed6ece2

Authored by Georg Hopp
1 parent 3a21eacb

improve online help

Showing 1 changed file with 7 additions and 7 deletions
... ... @@ -85,18 +85,18 @@ class Application(EventHandler):
85 85 return True
86 86
87 87 def usage():
88   - print "Usage: " + sys.argv[0] + " -[HDbhpk] bindip bindport\n"
89   - print "Create a tree representation of all DNs starting with a given base DN."
90   - print "Only simple binds to the directory with DN and password are supported."
91   - print "If no password OPTION is given the password will be asked interactive."
92   - print "If no outfile the given the result will be written to stdout.\n"
93   - print "Required OPTIONS are:\n"
  88 + print "Usage: " + sys.argv[0] + " ARGUMENT... [OPTIONS]... bindip bindport\n"
  89 + print "Start a webserver on the given bindip and bindport. On the page a"
  90 + print "tree representation of all DNs starting with a given base DN is"
  91 + print "visualized."
  92 + print "Only simple binds to the directory with DN and password are supported.\n"
  93 + print "ARGUMENTS:\n"
94 94 print " {:30s} : {:s}".format('-H, --hosturi=URI', 'The URI to the ldap server to query in the form:')
95 95 print " {:30s} {:s}".format('', 'ldap[s]://host.uri[:port]')
96 96 print " {:30s} : {:s}".format('-D, --binddn=DN', 'The DN to use for the LDAP bind.')
97 97 print " {:30s} : {:s}".format('-p, --password=PASSWORD', 'The password to use for the LDAP bind.')
98 98 print " {:30s} : {:s}\n".format('-b, --basedn=DN', 'The DN to start the tree with.')
99   - print "Optional OPTIONS are:\n"
  99 + print "OPTIONS:\n"
100 100 print " {:30s} : {:s}".format('-h, --help', 'Show this help page')
101 101
102 102 def main():
... ...
Please register or login to post a comment