Sha256: e3e55d0863c8a348bd064455f578a29a8403c92b07c738a82c3e1c883fc6a5ff
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
require 'brigadier' # You can run like so: # # ruby basic.rb --help # ruby basic.rb class BasicCommand extend Brigadier toggle 'debug', 'Debugging toggle' toggle 'verbose', 'Verbose mode', default: true execute do puts "Inside \#execute - debug?: #{debug?}, verbose?: #{verbose?}" end end Brigadier::Runner.new(ARGV).run(BasicCommand)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brigadier-0.1.2 | examples/basic.rb |
brigadier-0.1.1 | examples/basic.rb |