docs: def _extract_command_with_args(cmd):
      """Parse input command with arguments.
  
      Parses the input command in such a way that the user may
      provide additional argument to the command. The format used is this:
        command=arg1,arg2,arg3,...
      all the additional arguments are passed as arguments to the target
      method.
      """
      def _isint(value):
          try:
              int(value)
              return True
          except ValueError:
              return False
  
      equal_sign = cmd.find('=')
      if equal_sign == -1:
          return cmd, []
  
      command = cmd[0:equal_sign]
      args = cmd[equal_sign+1:].split(',')
      converted = [x if not _isint(x) else int(x) for x in args]
      return command, converted