diff --git a/lib/cli.ex b/lib/cli.ex index 21914f7..9033521 100644 --- a/lib/cli.ex +++ b/lib/cli.ex @@ -5,10 +5,10 @@ defmodule Onigumo.CLI do def main(argv) do try do - {[], [component]} = OptionParser.parse!(argv, strict: []) + {[], [component], []} = OptionParser.parse(argv, strict: []) component rescue - _ in [OptionParser.ParseError, MatchError] -> usage_message() + MatchError -> usage_message() else component -> {:ok, module} = Map.fetch(@components, String.to_atom(component))