           # aliases...
         ]
 
+  ## Options
+
+    * `--info` - locate the controller function definition called by the given url
+
+  ## Examples
+
+  Print all routes for the default router:
+
+      $ mix phx.routes
+
+  Print all routes for the given router:
+
+      $ mix phx.routes MyApp.AnotherRouter
+
+  Print information about the controller function called by a specified url:
+
+      $ mix phx.routes --info http://0.0.0.0:4000/home
+        Module: RouteInfoTestWeb.PageController
+        Function: :index
+        /home/my_app/controllers/page_controller.ex:4
   """
 
   @doc false

    Mix.Task.run("compile", args)
    Mix.Task.reenable("phx.routes")

    case OptionParser.parse(args, switches: [endpoint: :string, router: :string]) do
      {opts, [passed_router], _} ->
        ConsoleFormatter.format(passed_router, opts[:endpoint])

      {opts, [], _} ->
        ConsoleFormatter.format(router(opts[:router], base), endpoint(opts[:endpoint], base))
    end
  end



  @moduledoc """
  Prints all routes for the default or a given router.
  Can also locate the controller function behind a specified url.

      $ mix phx.routes [ROUTER] [--info URL]

  The default router is inflected from the application
  name unless a configuration named `:namespace`
