Sha256: bf453d92a64bf3cb4add958245d9b5e19029a28562ef13abb4df924004384052
Contents?: true
Size: 534 Bytes
Versions: 5
Compression:
Stored size: 534 Bytes
Contents
#!/usr/bin/env ruby require 'lesspainful/cli' require 'lesspainful/version' begin script = LessPainful::CLI.new if ARGV.count == 0 script.invoke(:help) elsif LessPainful::CLI.all_tasks.keys.include?(ARGV[0]) LessPainful::CLI.start elsif ARGV.count >= 2 #For backwards compat allow "old-style" script.invoke(:submit, ARGV) else script.invoke(:help) end rescue Exception=>e if ENV['DEBUG'] puts e.backtrace.join("\n") if e.backtrace puts "Message:" end puts e.message exit(false) end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
lesspainful-0.10.6 | bin/lesspainful |
lesspainful-0.10.5 | bin/lesspainful |
lesspainful-0.10.4 | bin/lesspainful |
lesspainful-0.10.3 | bin/lesspainful |
lesspainful-0.10.2 | bin/lesspainful |