{
  "name": "mkinitcpio",
  "description": "Create an initial ramdisk environment",
  "options": [
    {
      "names": [
        "--help",
        "-h"
      ],
      "description": "Show help for mkinitcpio"
    },
    {
      "names": [
        "--version",
        "-V"
      ],
      "description": "Display version information"
    },
    {
      "names": [
        "--addhooks",
        "-A"
      ],
      "description": "Add additional hooks to the image",
      "args": [
        {
          "name": "hooks",
          "template": "filepaths"
        }
      ]
    },
    {
      "names": [
        "--config",
        "-c"
      ],
      "description": "Use config file to generate the ramdisk",
      "args": [
        {
          "name": "config",
          "template": "filepaths"
        }
      ]
    },
    {
      "names": [
        "--generatedir",
        "-d"
      ],
      "description": "Set directory as the location where the initramfs is built",
      "args": [
        {
          "name": "directory",
          "template": "folders"
        }
      ]
    },
    {
      "names": [
        "--hookdir",
        "-D"
      ],
      "description": "Set directory as the location where hooks will be searched for when generating the image",
      "args": [
        {
          "name": "directory",
          "template": "folders"
        }
      ]
    },
    {
      "names": [
        "--generate",
        "-g"
      ],
      "description": "Generate a CPIO image as filename",
      "args": [
        {
          "name": "filename"
        }
      ]
    },
    {
      "names": [
        "--hookhelp",
        "-H"
      ],
      "description": "Output help for hookname",
      "args": [
        {
          "name": "hookname"
        }
      ]
    },
    {
      "names": [
        "--kernel",
        "-k"
      ],
      "description": "Use kernelversion, instead of the current running kernel",
      "args": [
        {
          "name": "kernelversion"
        }
      ]
    },
    {
      "names": [
        "--listhooks",
        "-L"
      ],
      "description": "List all available hooks"
    },
    {
      "names": [
        "--automods",
        "-M"
      ],
      "description": "Display modules found via autodetection"
    },
    {
      "names": [
        "--nocolor",
        "-n"
      ],
      "description": "Disable color output"
    },
    {
      "names": [
        "--uefi",
        "-U"
      ],
      "description": "Generate a UEFI executable as filename",
      "args": [
        {
          "name": "filename"
        }
      ]
    },
    {
      "names": [
        "--allpresets",
        "-P"
      ],
      "description": "Process all presets contained in /etc/mkinitcpio.d"
    },
    {
      "names": [
        "--preset",
        "-p"
      ],
      "description": "Build initramfs image(s) according to specified preset",
      "args": [
        {
          "name": "preset",
          "generators": [
            {
              "script": [
                "ls",
                "/etc/mkinitcpio.d"
              ]
            }
          ]
        }
      ]
    },
    {
      "names": [
        "--moduleroot",
        "-r"
      ],
      "description": "Specifies the root directory to find modules in",
      "args": [
        {
          "name": "root"
        }
      ]
    },
    {
      "names": [
        "--skiphooks",
        "-S"
      ],
      "description": "Skip hooks when generating the image",
      "args": [
        {
          "name": "hooks"
        }
      ]
    },
    {
      "names": [
        "--save",
        "-s"
      ],
      "description": "Saves the build directory for the initial ramdisk"
    },
    {
      "names": [
        "--builddir",
        "-t"
      ],
      "description": "Use tmpdir as the temporary build directory instead of /tmp",
      "args": [
        {
          "name": "tmpdir",
          "template": "folders"
        }
      ]
    },
    {
      "names": [
        "--verbose",
        "-v"
      ],
      "description": "Verbose output"
    },
    {
      "names": [
        "--compress",
        "-z"
      ],
      "description": "Override the compression method with the compress program",
      "args": [
        {
          "name": "compress"
        }
      ]
    },
    {
      "names": [
        "--cmdline"
      ],
      "description": "Use kernel command line with UEFI executable",
      "args": [
        {
          "name": "filename"
        }
      ]
    },
    {
      "names": [
        "--splash"
      ],
      "description": "UEFI executables can show a bitmap file on boot",
      "args": [
        {
          "name": "filename"
        }
      ]
    },
    {
      "names": [
        "--uefistub"
      ],
      "description": "UEFI stub image used for UEFI executable generation",
      "args": [
        {
          "name": "filename"
        }
      ]
    },
    {
      "names": [
        "--kernelimage"
      ],
      "description": "Include a kernel image for the UEFI executable",
      "args": [
        {
          "name": "filename"
        }
      ]
    },
    {
      "names": [
        "--microcode"
      ],
      "description": "Include microcode into the UEFI executable",
      "args": [
        {
          "name": "filename"
        }
      ]
    },
    {
      "names": [
        "--osrelease"
      ],
      "description": "Include a os-release file for the UEFI executable",
      "args": [
        {
          "name": "filename"
        }
      ]
    }
  ]
}
