def run_command_convert(options, **kwargs): """ Subcommand "crossbar convert". """ configfile = os.path.join(options.cbdir, options.config) print("Converting local configuration file {}".format(configfile)) try: convert_config_file(configfile) except Exception as e: print("\nError: {}\n".format(e)) sys.exit(1) else: sys.exit(0)