Skip to content

Commit

Permalink
Fix command line parsing again.
Browse files Browse the repository at this point in the history
  • Loading branch information
flanglet committed Nov 11, 2019
1 parent 733569c commit 8b3cfea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Kanzi.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,10 @@ func processCommandLine(args []string, argsMap map[string]interface{}) int {

argsMap["inputName"] = inputName
argsMap["outputName"] = outputName
argsMap["level"] = level

if mode == "c" || level != -1 {
argsMap["level"] = level
}

if len(codec) > 0 {
argsMap["entropy"] = codec
Expand Down

0 comments on commit 8b3cfea

Please sign in to comment.