Skip to content

Commit

Permalink
fix(cli): Return success if --help explicitly requested
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Mar 24, 2023
1 parent 93f786d commit fcb296d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/cli.lua
Expand Up @@ -38,7 +38,8 @@ cli.parseArguments = function ()
local opts, parse_err = cliargs:parse(_arg)
if not opts and parse_err then
print(parse_err)
os.exit(1)
local code = parse_err:match("^Usage:") and 0 or 1
os.exit(code)
end
if opts.INPUT then
if opts.INPUT == "STDIO" then
Expand Down

0 comments on commit fcb296d

Please sign in to comment.