code: def main(argv=None):
      
      cmd_opts = parse_cmdline(argv)[0]
      if cmd_opts.confpath is not None:
          if os.path.exists(cmd_opts.confpath):
              conf_paths = [cmd_opts.confpath,]
          else:
              return "Configuration file not found: %s" % cmd_opts.confpath
      else:
          conf_paths = [os.path.join(path, defaultConfFilename) 
                        for path in ('/etc', '.',)]
      try:
          conf.update(parse_conf_files(conf_paths))
      except ConfigurationError:
          return(sys.exc_info()[1])
      if cmd_opts.bindport is not None:
          conf['bindport'] = cmd_opts.bindport
      if cmd_opts.bindaddr is not None:
          conf['bindaddr'] = cmd_opts.bindaddr
      if cmd_opts.baseurl is not None:
          conf['baseurl'] = cmd_opts.baseurl
      if cmd_opts.devel:
          from bottle import debug
          debug(True)
      app = SessionMiddleware(bottle.app(), sessionOpts)
      bottle.run(app=app, host=conf['bindaddr'], port=conf['bindport'], 
                 reloader=cmd_opts.devel)
docs: Main Block - Configure and run the Bottle Web Server.