Skip to content

Commit

Permalink
Merge pull request lunarmodules#258 from nevir/cliargs-fix
Browse files Browse the repository at this point in the history
Use cliparse's new API, and handle error cases.
  • Loading branch information
DorianGray committed Jul 17, 2014
2 parents 5b60cbd + ae1909e commit b1507ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/busted
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ cli:add_flag('--suppress-pending', 'suppress `pending` test output')
cli:add_flag('--defer-print', 'defer print to when test suite is complete')

-- Parse the cli arguments
local cliArgs = cli:parse_args()
local cliArgs, error = cli:parse()
if error then
os.exit(1)
end

-- Return early if only asked for the version
if cliArgs.version then
Expand Down

0 comments on commit b1507ed

Please sign in to comment.