Skip to content

Commit

Permalink
Fix order of catch cases with order of tested commands
Browse files Browse the repository at this point in the history
  • Loading branch information
nappex committed Dec 1, 2024
1 parent 114eab5 commit 84a9aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ defmodule Onigumo.CLI do
working_dir = Keyword.get(switches, :working_dir, File.cwd!())
module.main(working_dir)
else
:error -> usage_message()
{_, _, [_ | _]} -> usage_message()
{_, argv, _} when length(argv) != 1 -> usage_message()
:error -> usage_message()
_ -> usage_message()
end
end
Expand Down

0 comments on commit 84a9aa3

Please sign in to comment.