{
  "name": "fdisk",
  "description": "Manipulate disk partition table",
  "options": [
    {
      "names": [
        "--help",
        "-h"
      ],
      "description": "Show help for fdisk"
    },
    {
      "names": [
        "--version",
        "-V"
      ],
      "description": "Show version for lsblk"
    },
    {
      "names": [
        "--sector-size",
        "-b"
      ],
      "description": "Specify the sector size of the disk",
      "args": [
        {
          "name": "mode",
          "description": "Valid values are 512, 1024, 2048, and 4096",
          "suggestions": [
            "512",
            "1024",
            "2048",
            "4096"
          ]
        }
      ]
    },
    {
      "names": [
        "--protect-boot",
        "-B"
      ],
      "description": "Don't erase the beginning of the first disk sector when creating a new disk label"
    },
    {
      "names": [
        "--compatibility",
        "-c"
      ],
      "description": "Specify the compatibility mode, 'dos' or 'nondos'",
      "args": [
        {
          "name": "mode",
          "isOptional": true,
          "suggestions": [
            "dos",
            "nondos"
          ]
        }
      ]
    },
    {
      "names": [
        "--color",
        "-L"
      ],
      "description": "Colorize the output",
      "args": [
        {
          "name": "when",
          "isOptional": true,
          "suggestions": [
            "always",
            "never",
            "auto"
          ]
        }
      ]
    },
    {
      "names": [
        "--list",
        "-l"
      ],
      "description": "List the partition tables for the specified devices and then exit"
    },
    {
      "names": [
        "--list-details",
        "-x"
      ],
      "description": "Like --list, but provides more details"
    },
    {
      "names": [
        "--lock"
      ],
      "description": "Use exclusive BSD lock for device or file it operates",
      "args": [
        {
          "name": "mode",
          "description": "Optional argument mode can be yes, no (or 1 and 0) or nonblock",
          "isOptional": true,
          "suggestions": [
            "yes",
            "no",
            "nonblock"
          ]
        }
      ]
    },
    {
      "names": [
        "--noauto-pt",
        "-n"
      ],
      "description": "Don't automatically create a default partition table on empty device"
    },
    {
      "names": [
        "--output",
        "-o"
      ],
      "description": "Desc",
      "args": [
        {
          "name": "list"
        }
      ]
    },
    {
      "names": [
        "--getsz",
        "-s"
      ],
      "description": "Print the size in 512-byte sectors of each given block device. This option is DEPRECATED in favour of blockdev(8)"
    },
    {
      "names": [
        "--type",
        "-t"
      ],
      "description": "Enable support only for disklabels of the specified type, and disable support for all other types",
      "args": [
        {
          "name": "type"
        }
      ]
    },
    {
      "names": [
        "--units",
        "-u"
      ],
      "description": "When listing partition tables, show sizes in 'sectors' or in 'cylinders'",
      "args": [
        {
          "name": "unit",
          "isOptional": true,
          "suggestions": [
            "sectors",
            "cylinders"
          ]
        }
      ]
    },
    {
      "names": [
        "--cylinders",
        "-C"
      ],
      "description": "Specify the number of cylinders of the disk",
      "args": [
        {
          "name": "number"
        }
      ]
    },
    {
      "names": [
        "--heads",
        "-H"
      ],
      "description": "Specify the number of heads of the disk. (Not the physical number, of course, but the number used for partition tables.)",
      "args": [
        {
          "name": "number"
        }
      ]
    },
    {
      "names": [
        "--sectors",
        "-S"
      ],
      "description": "Specify the number of sectors per track of the disk. (Not the physical number, of course, but the number used for partition tables.)"
    },
    {
      "names": [
        "--wipe",
        "-w"
      ],
      "description": "Wipe filesystem, RAID and partition-table signatures from the device, in order to avoid possible collisions",
      "args": [
        {
          "name": "when",
          "description": "The argument when can be auto, never or always",
          "suggestions": [
            "auto",
            "never",
            "always"
          ]
        }
      ]
    },
    {
      "names": [
        "--wipe-partitions",
        "-W"
      ],
      "description": "Wipe filesystem, RAID and partition-table signatures from a newly created partitions, in order to avoid possible collisions",
      "args": [
        {
          "name": "when",
          "description": "The argument when can be auto, never or always"
        }
      ]
    }
  ],
  "args": [
    {
      "name": "device",
      "description": "Device to list",
      "isOptional": true,
      "template": "filepaths"
    }
  ]
}
