docs: def parse_cmdline(argv=None):
      """Parse command line options.
      
      @param argv: List of command line arguments. If None, get list from system.
      @return:     Tuple of Option List and Argument List.
      
      """
      parser = optparse.OptionParser()
      parser.add_option('-c', '--conf', help='Configuration file path.',
                        dest='confpath',default=None)
      parser.add_option('-p', '--bindport',
                        help='Bind to TCP Port. (Default: %d)' % conf['bindport'],
                        dest='bindport', type='int', default=None, action='store')
      parser.add_option('-b', '--bindaddr',
                        help='Bind to IP Address. (Default: %s)' % conf['bindaddr'],
                        dest='bindaddr', default=None, action='store')
      parser.add_option('-u', '--baseurl', 
                        help='Base URL. (Default: %s)' % conf['baseurl'],
                        dest='baseurl', default=None, action='store')
      parser.add_option('-D', '--devel', help='Enable development mode.',
                        dest='devel', default=False, action='store_true')
      if argv is None:
          return parser.parse_args()
      else:
          return parser.parse_args(argv[1:])