Skip to content

Commit

Permalink
Don't process -pr in a special way in mix run and mix profile.fprof (e…
Browse files Browse the repository at this point in the history
…lixir-lang#5036)

We don't need this anymore now (80aec92) that we support splitting of
-abc into -a -b -c.
  • Loading branch information
whatyouhide authored Jul 20, 2016
1 parent 80aec92 commit ca195d7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
9 changes: 0 additions & 9 deletions lib/mix/lib/mix/tasks/profile.fprof.ex
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,6 @@ defmodule Mix.Tasks.Profile.Fprof do

@spec run(OptionParser.argv) :: :ok
def run(args) do
# We do this right now because we still support -pr as an alias for
# --parallel-require, we need to implement the translation from -abc to -a
# -b -c so that -pr becomes --parallel --require and we have free backwards
# compatibility.
args = Enum.flat_map(args, fn
"-pr" -> ["-p", "-r"]
other -> [other]
end)

{opts, head} = OptionParser.parse_head!(args,
aliases: [r: :require, p: :parallel, e: :eval, c: :config],
strict: @switches)
Expand Down
9 changes: 0 additions & 9 deletions lib/mix/lib/mix/tasks/run.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ defmodule Mix.Tasks.Run do

@spec run(OptionParser.argv) :: :ok
def run(args) do
# We do this right now because we still support -pr as an alias for
# --parallel-require, we need to implement the translation from -abc to -a
# -b -c so that -pr becomes --parallel --require and we have free backwards
# compatibility.
args = Enum.flat_map(args, fn
"-pr" -> ["-p", "-r"]
other -> [other]
end)

{opts, head} = OptionParser.parse_head!(args,
aliases: [r: :require, p: :parallel, e: :eval, c: :config],
strict: [parallel: :boolean, require: :keep, eval: :keep, config: :keep,
Expand Down

0 comments on commit ca195d7

Please sign in to comment.