Sha256: d433558f451258b0a433a851919b5aaa1449e5c4ae76f971a85e502ec9e4a6c8

Contents?: true

Size: 567 Bytes

Versions: 5

Compression:

Stored size: 567 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::Lazydoc.usage(__FILE__)
    puts opts
    exit
  end
  
end.parse!(ARGV)


#
# add your script code here
#

puts "Received: #{ARGV.join(', ')}"
puts app.info

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
bahuvrihi-tap-0.11.0 lib/tap/generator/generators/command/templates/command.erb
bahuvrihi-tap-0.11.1 lib/tap/generator/generators/command/templates/command.erb
bahuvrihi-tap-0.11.2 lib/tap/generator/generators/command/templates/command.erb
tap-0.11.1 lib/tap/generator/generators/command/templates/command.erb
tap-0.11.0 lib/tap/generator/generators/command/templates/command.erb