def init(self):
super(RespondCommand, self).init()
self.init_link_attributes()
if self.args.config is not None:
config_file = self.args.config
if config_file == "-":
config_file = "/dev/stdin"
try:
config = _runpy.run_path(config_file)
except:
self.fail("Failed to load config from '{0}'", config_file)
try:
self.process = config["process"]
except KeyError:
self.fail("Function 'process' not found in '{0}'", config_file)
self.desired_messages = self.args.count
self.upper = self.args.upper
self.reverse = self.args.reverse
self.append = self.args.append
评论列表
文章目录