Sha256: 94037738f5260b9053fe105cbbe1936ac627b3b616a6fc9a449073c242471678

Contents?: true

Size: 968 Bytes

Versions: 12

Compression:

Stored size: 968 Bytes

Contents

module Redcar
  
  class Usage
    def version_string
      str = "Redcar #{Redcar::VERSION} ( #{RUBY_PLATFORM} )"
      puts str
    end
    
    def version_requested
      if ARGV.include?("-v")
        puts "Redcar #{Redcar::VERSION}"
        exit
      end
    end

    def help_requested
      if ARGV.include?("-h") or ARGV.include?("--help")
        puts
        puts "Usage: redcar [OPTIONS] [FILE|DIR]*"
        puts
        puts " --multiple-instance  Don't attempt to open files and dirs in an already running instance"
        puts "             --debug  JRuby debugging mode: activates the profiling commands in the Debug menu"
        puts "--untitled-file=PATH  Open the given file as an untitled tab."
        puts "      --ignore-stdin  Ignore stdin"
        #puts "To associate with right click in windows explorer:"
        #puts
        #puts "  C:> redcar --associate_with_any_right_click"
        #puts
        exit
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
redcar-0.3.10.1dev lib/redcar/usage.rb
redcar-0.3.10.0dev lib/redcar/usage.rb
redcar-0.3.9 lib/redcar/usage.rb
redcar-0.3.9.0dev lib/redcar/usage.rb
redcar-0.3.8.4 lib/redcar/usage.rb
redcar-0.3.8.3 lib/redcar/usage.rb
redcar-0.3.8.2 lib/redcar/usage.rb
redcar-0.3.8.1 lib/redcar/usage.rb
redcar-0.3.8 lib/redcar/usage.rb
redcar-0.3.7.1 lib/redcar/usage.rb
redcar-0.3.7 lib/redcar/usage.rb
redcar-0.3.6 lib/redcar/usage.rb