module Cult::CLI::OptionParserExtensions
This extension stops option processing at the first non-option bare-word. Without it, further arguments that look like options are treated as such. use-case:
cult node ssh SomeNode ls -l
Public Instance Methods
run()
click to toggle source
Calls superclass method
# File lib/cult/cli/cri_extensions.rb, line 39 def run peek = @unprocessed_arguments_and_options[0] @no_more_options = true if peek && peek[0] != '-' super end