code: def cmd_output(self, args):
          '''handle output commands'''
          if len(args) < 1 or args[0] == "list":
              self.cmd_output_list()
          elif args[0] == "add":
              if len(args) != 2:
                  print("Usage: output add OUTPUT")
                  return
              self.cmd_output_add(args[1:])
          elif args[0] == "remove":
              if len(args) != 2:
                  print("Usage: output remove OUTPUT")
                  return
              self.cmd_output_remove(args[1:])
          elif args[0] == "sysid":
              if len(args) != 3:
                  print("Usage: output sysid SYSID OUTPUT")
                  return
              self.cmd_output_sysid(args[1:])
          else:
              print("usage: output <list|add|remove|sysid>"f cmd_output(self, args):
          '''handle output commands'''
          if len(args) < 1 or args[0] == "list":
              self.cmd_output_list()
          elif args[0] == "add":
              if len(args) != 2:
                  print("Usage: output add OUTPUT")
                  return
              self.cmd_output_add(args[1:])
          elif args[0] == "remove":
              if len(args) != 2:
                  print("Usage: output remove OUTPUT")
                  return
              self.cmd_output_remove(args[1:])
          elif args[0] == "sysid":
              if len(args) != 3:
                  print("Usage: output sysid SYSID OUTPUT")
                  return
              self.cmd_output_sysid(args[1:])
          else:
              print("usage: output <list|add|remove|sysid>")
docs: handle output commands