{
  "name": "xxd",
  "description": "Make a hexdump or do the reverse",
  "options": [
    {
      "names": [
        "-help",
        "-h"
      ],
      "description": "Show help for xxd"
    },
    {
      "names": [
        "-autoskip",
        "-a"
      ],
      "description": "Toggle autoskip: A single '*' replaces nul-lines.  Default off"
    },
    {
      "names": [
        "-bits",
        "-b"
      ],
      "description": "Switch to bits (binary digits) dump, rather than hexdump"
    },
    {
      "names": [
        "-cols",
        "-c"
      ],
      "description": "Format <cols> octets per line. Default 16",
      "takes_arg": true,
      "arg": {
        "name": "cols"
      }
    },
    {
      "names": [
        "-capitalize",
        "-C"
      ],
      "description": "Capitalize variable names in C include file style, when using -i"
    },
    {
      "names": [
        "-EBCDIC",
        "-E"
      ],
      "description": "Change the character encoding in the righthand column from ASCII to EBCDIC"
    },
    {
      "names": [
        "-e"
      ],
      "description": "Switch to little-endian hexdump"
    },
    {
      "names": [
        "-groupsize",
        "-g"
      ],
      "description": "Separate the output of every <bytes> bytes",
      "takes_arg": true,
      "arg": {
        "name": "bytes"
      }
    },
    {
      "names": [
        "-include",
        "-i"
      ],
      "description": "Output in C include file style"
    },
    {
      "names": [
        "-len",
        "-l"
      ],
      "description": "Stop after writing <len> octets",
      "takes_arg": true,
      "arg": {
        "name": "len"
      }
    },
    {
      "names": [
        "-name",
        "-n"
      ],
      "description": "Override the variable name output when -i is used",
      "takes_arg": true,
      "arg": {
        "name": "name"
      }
    },
    {
      "names": [
        "-o"
      ],
      "description": "Add <offset> to the displayed file position",
      "takes_arg": true,
      "arg": {
        "name": "offset"
      }
    },
    {
      "names": [
        "-postscript",
        "-plain",
        "-ps",
        "-p"
      ],
      "description": "Output in postscript continuous hexdump style"
    },
    {
      "names": [
        "-revert",
        "-r"
      ],
      "description": "Reverse operation: convert (or patch) hexdump into binary"
    },
    {
      "names": [
        "-seek"
      ],
      "description": "When used after -r: revert with <offset> added to file positions found in hexdump",
      "takes_arg": true,
      "arg": {
        "name": "offset"
      }
    },
    {
      "names": [
        "-u"
      ],
      "description": "Use upper case hex letters. Default is lower case"
    },
    {
      "names": [
        "-version",
        "-v"
      ],
      "description": "Show version string"
    }
  ],
  "args": [
    {
      "name": "infile",
      "template": "filepaths"
    },
    {
      "name": "outfile",
      "template": "filepaths"
    }
  ]
}
