Sha256: 33f77fbcc61882d50c97ff02bcf645afa59b9229a4c714c4537dc05785932016
Contents?: true
Size: 621 Bytes
Versions: 4
Compression:
Stored size: 621 Bytes
Contents
#!/usr/bin/env ruby require 'mercenary' require 'usaidwat' require 'usaidwat/ext/mercenary' Mercenary.program(:usaidwat) do |p| version = USaidWat::VERSION version += " (#{USaidWat::commit_hash})" if USaidWat::VERSION.end_with?('.dev') p.version version p.description 'Answers the age-old question, "Where does a Redditor comment the most?"' p.syntax 'usaidwat <command> [options] <args>' USaidWat::Application::Command.subclasses.each { |c| c.new(p) } p.action do |args, options| if args.empty? puts p.to_s exit 0 else abort "Invalid command: #{args.first}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
usaidwat-1.6.1 | bin/usaidwat |
usaidwat-1.6.0 | bin/usaidwat |
usaidwat-1.5.1 | bin/usaidwat |
usaidwat-1.5.0 | bin/usaidwat |