EricFromCanada 388781f6a7 dev-cmd/: remove colons from command specs.
These aren't needed when converting Parser-based help text to man page or Markdown formats.
Includes regenerated docs.
2018-10-19 13:12:55 -04:00

30 lines
539 B
Ruby

#: * `formula` <formulae>:
#: Display the path where a formula is located.
require "formula"
require "cli_parser"
module Homebrew
module_function
def formula_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
`formula` <formulae>
Display the path where a formula is located.
EOS
switch :verbose
switch :debug
end
end
def formula
formula_args.parse
raise FormulaUnspecifiedError if ARGV.named.empty?
ARGV.resolved_formulae.each { |f| puts f.path }
end
end