Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions lib/mix/lib/mix/tasks/local.rebar.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ defmodule Mix.Tasks.Local.Rebar do

## Command line options

* `rebar PATH` - specifies a path for `rebar`

* `rebar3 PATH` - specifies a path for `rebar3`

* `--sha512` - checks the Rebar script matches the given SHA-512 checksum
Expand All @@ -44,9 +42,9 @@ defmodule Mix.Tasks.Local.Rebar do

@impl true
def run(argv) do
{opts, _, _} = OptionParser.parse(argv, switches: @switches)
{opts, args, _} = OptionParser.parse(argv, switches: @switches)

case argv do
case args do
["rebar3", path | _] ->
maybe_install_from_path(:rebar3, path, opts)

Expand All @@ -55,7 +53,7 @@ defmodule Mix.Tasks.Local.Rebar do

_ ->
Mix.raise(
"Invalid arguments given to mix local.rebar. " <>
"Invalid arguments given to mix local.rebar: #{inspect(args)}. " <>
"To find out the proper call syntax run \"mix help local.rebar\""
)
end
Expand Down