def setup(self): Collector.setup(self) self.argparser = self.parent.subparsers.add_parser("proc", help="Linux proc(5) monitor") DaemonizingMixin.setup(self) default_interval = 180 default_action = "start" self.add_param("action", choices=self.initactions, default=default_action, nargs="?", help="action to take (default: %s)" % default_action) self.add_param("-i", "--interval", default=default_interval, help="interval between cycles while daemonized (default: %s)" % default_interval) self.add_param("-f", "--fields", nargs="*", help="fields to include (default: all fields)")
def setup(self): SubCommand.setup(self) DaemonizingMixin.setup(self)