DolphinTool: Fix parsing of command line bzip2 flag

Use "bzip2" instead of "bzip" in optparse's compression choices for the
convert command. This is both more accurate and matches what the
ParseCompressionTypeString function expects.

The mismatch between the two parsing functions prevented compression
using bzip2 because either ParseCompressionTypeString or optparse would
generate an error when using "bzip" or "bzip2" respectively.

Fixes https://bugs.dolphin-emu.org/issues/13427
This commit is contained in:
Dentomologist 2024-02-13 11:44:41 -08:00
parent a583526a1c
commit a1d6a54eaa
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ int ConvertCommand(const std::vector<std::string>& args)
.action("store")
.help("Compression method to use when converting to WIA/RVZ. Suggested value for RVZ: zstd "
"[%choices]")
.choices({"none", "zstd", "bzip", "lzma", "lzma2"});
.choices({"none", "zstd", "bzip2", "lzma", "lzma2"});
parser.add_option("-l", "--compression_level")
.type("int")