Sha256: 1bca0bf621e7cdcac75b38da5af053438fd3442def97b80b27e4198519806d81
Contents?: true
Size: 519 Bytes
Versions: 6
Compression:
Stored size: 519 Bytes
Contents
#!/usr/bin/env ruby require 'mercenary' require 'usaidwat' require 'usaidwat/ext/mercenary' Mercenary.program(:usaidwat) do |p| p.version USaidWat::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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
usaidwat-1.4.5 | bin/usaidwat |
usaidwat-1.4.4 | bin/usaidwat |
usaidwat-1.4.3 | bin/usaidwat |
usaidwat-1.4.2 | bin/usaidwat |
usaidwat-1.4.1 | bin/usaidwat |
usaidwat-1.4.0 | bin/usaidwat |