def main(self, options, config): console = Console(config) rules_name = options.rulesname[0] if options.subcommand == "phases": console.list_rules_phases(rules_name) elif options.subcommand == "files": console.list_rules_files(rules_name)