Sha256: f534436245f9d5756f7e5725c954797c73f02a64660ed3bc7504d874186e8982
Contents?: true
Size: 504 Bytes
Versions: 2
Compression:
Stored size: 504 Bytes
Contents
#!/usr/bin/env ruby require 'lesspainful/cli' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lesspainful-0.10.1 | bin/lesspainful |
lesspainful-0.10.0 | bin/lesspainful |