Skip to content

Commit

Permalink
fix a bug that caused raw flag to not be settable
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrielChaoti committed Sep 12, 2023
1 parent 472a0c4 commit d4660e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autofish.lua
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ end
local positionals = argparse.processArgsGetopt(args,
{{"r", "raw", hasArg=true,
handler=function(optArg)
return argparse.boolean(optArg, "raw")
local val = argparse.boolean(optArg, "raw")
set_useRaw(val)
end}
})

Expand Down

0 comments on commit d4660e1

Please sign in to comment.