Quakespotter.app/lib/ruby-processing/runner.rb
# Parse the command-line options. Keep it simple.
Parse the command-line options. Keep it simple.
Parse the command - line options . Keep it simple .
def parse_options(args)
      @options = OpenStruct.new
      @options.bare   = !!args.delete('--bare')
      @options.jruby  = !!args.delete('--jruby')
      @options.action = args[0]     || nil
      @options.path   = args[1]     || File.basename(Dir.pwd + '.rb')
      @options.args   = args[2..-1] || []
    end
def parse_options ( args ) @options = OpenStruct . new @options . bare = ! ! args . delete ( '--bare' ) @options . jruby = ! ! args . delete ( '--jruby' ) @options . action = args [ 0 ] || nil @options . path = args [ 1 ] || File . basename ( Dir . pwd + '.rb' ) @options . args = args [ 2 .. - 1 ] || [ ] end
Parse the command-line options.
Parse the command - line options .
args