code: def _edit_linux_cmdline(cmdline, state, name, value=None):
      
      kv = _parse_linux_cmdline(cmdline)
      if state == 'absent':
          try:
              del kv[name]
          except KeyError:
              pass
      elif state == 'present':
          kv[name] = value
      return _assemble_linux_cmdline(kv)
docs: Return a new Linux command line, with parameter `name` added,
      replaced, or removed.