code: def cli(conf):
      
      if conf:
          if not os.path.isfile(conf):
              raise click.exceptions.BadParameter("{} is not a file".format(conf))
          try:
              config.conf.load_config(config_path=conf)
          except exceptions.ConfigurationException as e:
              raise click.exceptions.BadParameter(str(e))
      twisted_observer = legacy_twisted_log.PythonLoggingObserver()
      twisted_observer.start()
      config.conf.setup_logging()
docs: The fedora-messaging command line interface.