{
  "name": "unix2dos",
  "description": "Unix to DOS text file format convertor",
  "options": [
    {
      "names": [
        "-h",
        "--help"
      ],
      "description": "Show help for dos2unix"
    },
    {
      "names": [
        "--"
      ],
      "description": "Treat all following options as file names. Use this option if you want to convert files whose names start with a dash"
    },
    {
      "names": [
        "--allow-chown"
      ],
      "description": "Allow file ownership change in old file mode"
    },
    {
      "names": [
        "-ascii"
      ],
      "description": "Convert only line breaks. This is the default conversion mode"
    },
    {
      "names": [
        "-iso"
      ],
      "description": "Conversion between DOS and ISO-8859-1 character set"
    },
    {
      "names": [
        "-1252"
      ],
      "description": "Use Windows code page 1252 (Western European)"
    },
    {
      "names": [
        "-437"
      ],
      "description": "Use DOS code page 437 (US). This is the default code page used for ISO conversion"
    },
    {
      "names": [
        "-850"
      ],
      "description": "Use DOS code page 850 (Western European)"
    },
    {
      "names": [
        "-860"
      ],
      "description": "Use DOS code page 860 (Portuguese)"
    },
    {
      "names": [
        "-863"
      ],
      "description": "Use DOS code page 863 (French Canadian)"
    },
    {
      "names": [
        "-865"
      ],
      "description": "Use DOS code page 865 (Nordic)"
    },
    {
      "names": [
        "-7"
      ],
      "description": "Convert 8 bit characters to 7 bit space"
    },
    {
      "names": [
        "-b",
        "--keep-bom"
      ],
      "description": "Keep Byte Order Mark (BOM). When the input file has a BOM, write a BOM in the output file"
    },
    {
      "names": [
        "-c",
        "--convmode"
      ],
      "description": "Set conversion mode",
      "takes_arg": true,
      "arg": {
        "name": "CONVMODE",
        "suggestions": [
          "ascii",
          "7bit",
          "iso",
          "mac"
        ]
      }
    },
    {
      "names": [
        "-D",
        "--display-enc"
      ],
      "description": "Set encoding of displayed text",
      "takes_arg": true,
      "arg": {
        "name": "ENCODING",
        "suggestions": [
          "ansi",
          "unicode",
          "unicodebom",
          "utf8",
          "utf8bom"
        ]
      }
    },
    {
      "names": [
        "-f",
        "--force"
      ],
      "description": "Force conversion of binary files"
    },
    {
      "names": [
        "-gb",
        "--gb18030"
      ],
      "description": "On Windows UTF-16 files are by default converted to UTF-8, regardless of the locale setting"
    },
    {
      "names": [
        "-i"
      ],
      "description": "Display file information. No conversion is done",
      "takes_arg": true,
      "arg": {
        "name": "value"
      }
    },
    {
      "names": [
        "--info"
      ],
      "description": "Display file information. No conversion is done",
      "takes_arg": true,
      "arg": {
        "name": "value"
      }
    },
    {
      "names": [
        "-k",
        "--keepdate"
      ]
    },
    {
      "names": [
        "-L",
        "--license"
      ],
      "description": "Display program's license"
    },
    {
      "names": [
        "-l",
        "--newline"
      ],
      "description": "Add additional newline"
    },
    {
      "names": [
        "-m",
        "--add-bom"
      ],
      "description": "Write a Byte Order Mark (BOM) in the output file. By default an UTF-8 BOM is written"
    },
    {
      "names": [
        "--newfile"
      ],
      "description": "New file mode. Convert file INFILE and write output to file OUTFILE. File names must be given in pairs and wildcard names should not be used or you will lose your files",
      "takes_arg": true,
      "arg": {
        "name": "INFILE",
        "template": "filepaths"
      }
    },
    {
      "names": [
        "--no-allow-chown"
      ],
      "description": "Don't allow file ownership change in old file mode (default)"
    },
    {
      "names": [
        "-o",
        "--oldfile"
      ],
      "description": "Old file mode. Convert file FILE and overwrite output to it",
      "takes_arg": true,
      "arg": {
        "name": "FILE",
        "is_variadic": true,
        "template": "filepaths"
      }
    },
    {
      "names": [
        "-q",
        "--quiet"
      ],
      "description": "Quiet mode. Suppress all warnings and messages. The return value is zero.  Except when wrong command-line options are used"
    },
    {
      "names": [
        "-r",
        "--remove-bom"
      ],
      "description": "Remove Byte Order Mark (BOM). Do not write a BOM in the output file"
    },
    {
      "names": [
        "-s",
        "--safe"
      ],
      "description": "Skip binary files (default)"
    },
    {
      "names": [
        "-u",
        "--keep-utf16"
      ],
      "description": "Keep UTF-16 encoding"
    },
    {
      "names": [
        "-ul",
        "--assume-utf16le"
      ],
      "description": "Assume that the input format is UTF-16LE"
    },
    {
      "names": [
        "-ub",
        "--assume-utf16be"
      ],
      "description": "Assume that the input format is UTF-16BE"
    },
    {
      "names": [
        "-v",
        "--verbose"
      ],
      "description": "Verbose operation"
    },
    {
      "names": [
        "-F",
        "--follow-symlink"
      ],
      "description": "Follow symbolic links and convert the targets"
    },
    {
      "names": [
        "-R",
        "--replace-symlink"
      ],
      "description": "Replace symbolic links with converted files"
    },
    {
      "names": [
        "-S",
        "--skip-symlink"
      ],
      "description": "Keep symbolic links and targets unchanged (default)"
    },
    {
      "names": [
        "-V",
        "--version"
      ],
      "description": "Display version number"
    }
  ],
  "args": [
    {
      "name": "file",
      "is_variadic": true,
      "template": "filepaths"
    }
  ]
}
