code: def register(self, command):
          
          command = command()
          if command.name in self.commands:
              raise ConsoleError(
                  "Command %s already registered!" % command.name
              )
  
          command.create_parser(self.subparsers)
          self.commands[command.name] = command
docs: Registers a command with the program