Sha256: 3e47472beed70f6f1c2180b55649ae7b9520052e70775b4fa63d92faf610e46c
Contents?: true
Size: 570 Bytes
Versions: 11
Compression:
Stored size: 570 Bytes
Contents
# tap <%= command_name %> {options} ARGS... # # The default command simply prints the input arguments # and application information, then exits. # env = Tap::Env.instance app = Tap::App.instance # # handle options # OptionParser.new do |opts| opts.separator "" opts.separator "options:" opts.on("-h", "--help", "Show this message") do opts.banner = Tap::Support::CommandLine.usage(__FILE__) puts opts exit end end.parse!(ARGV) # # add your script code here # puts "Received: #{ARGV.join(', ')}" puts app.info
Version data entries
11 entries across 11 versions & 2 rubygems