Sha256: 57e67654e08e221f47651713cea93881a2f2593a082753335d4247c0acd7787c
Contents?: true
Size: 486 Bytes
Versions: 4
Compression:
Stored size: 486 Bytes
Contents
#!/usr/bin/env ruby require 'usaidwat' require '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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
usaidwat-1.3.0 | bin/usaidwat |
usaidwat-1.2.0 | bin/usaidwat |
usaidwat-1.1.1 | bin/usaidwat |
usaidwat-1.1.0 | bin/usaidwat |