Skip to content

Commit b670f55

Browse files
committed
fix algo undetecting issue
1 parent 5eedc9f commit b670f55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
0 Bytes
Binary file not shown.

utils/cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ func ParseCLI() ([]string, string, string, MODE, string) {
237237
//check if algorithm is provided
238238
switch algorithm {
239239
case "":
240-
algorithm = "huffman"
241-
case "huffman":
240+
algorithm = string(HUFFMAN)
241+
case string(HUFFMAN), string(LZMA):
242242
break
243243
default:
244244
ColorPrint(RED, fmt.Sprintf("Unsupported algorithm: %s\n", algorithm))

0 commit comments

Comments
 (0)