Methods

Class/Module Index [+]

Quicksearch

Compass::Commands::VersionOptionsParser

Public Instance Methods

set_options(opts) click to toggle source
# File lib/compass/commands/print_version.rb, line 4
      def set_options(opts)
        opts.banner = %{Usage: compass version [options]

Options:
}
        opts.on_tail("-?", "-h", "--help", "Print out this message.") do
          puts opts
          exit
        end
        opts.on("-q", "--quiet", "Just print the version string.") do
          self.options[:quiet] = true
        end
        opts.on("--major", "Print the major version number") do
          self.options[:major] = true
          self.options[:custom] = true
        end
        opts.on("--minor", "Print up to the minor version number") do
          self.options[:major] = true
          self.options[:minor] = true
          self.options[:custom] = true
        end
        opts.on("--patch", "Print up to the patch version number") do
          self.options[:major] = true
          self.options[:minor] = true
          self.options[:patch] = true
          self.options[:custom] = true
        end
      end

[Validate]

Generated with the Darkfish Rdoc Generator 2.