Sha256: 1bf861580ee501a489836f6ce0b1b70a93cc79da5243f9692d1573fa43f12a41

Contents?: true

Size: 538 Bytes

Versions: 5

Compression:

Stored size: 538 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.new

#
# handle options
#

ConfigParser.new do |opts|
  opts.separator ""
  opts.separator "options:"

  opts.on("-h", "--help", "Show this message") do
    puts 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 & 1 rubygems

Version Path
tap-gen-0.2.0 templates/tap/generator/generators/command/command.erb
tap-gen-0.1.3 templates/tap/generator/generators/command/command.erb
tap-gen-0.1.1 templates/tap/generator/generators/command/command.erb
tap-gen-0.1.2 templates/tap/generator/generators/command/command.erb
tap-gen-0.1.0 templates/tap/generator/generators/command/command.erb