Sha256: 6f84c1ade75ec645b32a401a7fd11fd2c3951066299d7e66fe42bfce2f675f66
Contents?: true
Size: 489 Bytes
Versions: 4
Compression:
Stored size: 489 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift File.join(__dir__, "..", "lib") require "mercenary" # This example sets the logging mode of mercenary to # debug. Logging messages from "p.logger.debug" will # be output to STDOUT. Mercenary.program(:trace) do |p| p.version "2.0.1" p.description "An example of traces in Mercenary" p.syntax "trace <subcommand>" p.action do |_, _| raise ArgumentError, "YOU DID SOMETHING TERRIBLE YOU BUFFOON" end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
mercenary-0.4.0 | examples/trace.rb |
pedrozath-mercenary-0.3.8 | examples/trace.rb |
pedrozath-mercenary-0.3.7 | examples/trace.rb |
pedrozath-mercenary-0.3.6 | examples/trace.rb |