Skip to content

Commit 8ab8663

Browse files
author
José Valim
committed
Change help heading on mix
1 parent d44d71c commit 8ab8663

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/mix/lib/mix/tasks/help.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ defmodule Mix.Tasks.Help do
6565

6666
if ansi_docs?(opts) do
6767
opts = [width: width] ++ opts
68-
IO.ANSI.Docs.print_heading("mix help #{task}", opts)
68+
IO.ANSI.Docs.print_heading("mix #{task}", opts)
6969
IO.ANSI.Docs.print(doc, opts)
7070
else
71-
IO.puts "# mix help #{task}\n"
71+
IO.puts "# mix #{task}\n"
7272
IO.puts doc
7373
end
7474

lib/mix/test/mix/tasks/help_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ defmodule Mix.Tasks.HelpTest do
3131
Mix.Tasks.Help.run ["compile"]
3232
end
3333

34-
assert output =~ "# mix help compile"
34+
assert output =~ "# mix compile"
3535
assert output =~ "## Command line options"
3636
assert output =~ ~r/^Location:/m
3737
end

0 commit comments

Comments
 (0)