module Rodish::Plugins::SkipOptionParsing::DSLMethods

  1. lib/rodish/plugins/skip_option_parsing.rb

Methods

Public Instance

  1. skip_option_parsing

Public Instance methods

skip_option_parsing(banner)

Skip option parsing for the command. This is different then the default option parsing, which will error if any options are given. A banner must be provided, setting the usage for the command.

The main reason to use this is if you are going to pass the entire remaining argv as the argv to another program.

[show source]
   # File lib/rodish/plugins/skip_option_parsing.rb
27 def skip_option_parsing(banner)
28   @command.banner = banner
29   @command.option_parser = :skip
30 end