Module: OS::Linux::CLI::Parser Private

Extended by:
T::Helpers
Included in:
Homebrew::CLI::Parser
Defined in:
extend/os/linux/cli/parser.rb

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Instance Method Summary collapse

Instance Method Details

#set_default_optionsvoid

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.



13
14
15
# File 'extend/os/linux/cli/parser.rb', line 13

def set_default_options
  args["formula?"] = true if args.respond_to?(:formula?)
end

#validate_optionsvoid

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.



18
19
20
21
22
23
24
25
# File 'extend/os/linux/cli/parser.rb', line 18

def validate_options
  return unless args.respond_to?(:cask?)
  return unless args.cask?

  # NOTE: We don't raise an error here because we don't want
  #       to print the help page or a stack trace.
  odie "Invalid `--cask` usage: Casks do not work on Linux"
end