code: def add_command(self, command, function, description=None):
          
  
          self.registered[command] = {
              'function': function, 'description': description
          }
docs: Register a new function with a the name `command` and
          `description` (which will be shown then help is invoked).