code: def cmd_asterix(self, args):
          '''asterix command parser'''
          usage = "usage: asterix <set|start|stop|restart|status>"
          if len(args) == 0:
              print(usage)
              return
          if args[0] == "set":
              self.asterix_settings.command(args[1:])
          elif args[0] == "start":
              self.start_listener()
          elif args[0] == "stop":
              self.stop_listener()
          elif args[0] == "restart":
              self.stop_listener()
              self.start_listener()
          elif args[0] == "status":
              self.print_status()
          else:
              print(usagef cmd_asterix(self, args):
          '''asterix command parser'''
          usage = "usage: asterix <set|start|stop|restart|status>"
          if len(args) == 0:
              print(usage)
              return
          if args[0] == "set":
              self.asterix_settings.command(args[1:])
          elif args[0] == "start":
              self.start_listener()
          elif args[0] == "stop":
              self.stop_listener()
          elif args[0] == "restart":
              self.stop_listener()
              self.start_listener()
          elif args[0] == "status":
              self.print_status()
          else:
              print(usage)
docs: asterix command parser