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

Version Path
bahuvrihi-tap-0.10.0 lib/tap/generator/generators/command/templates/command.erb
bahuvrihi-tap-0.10.1 lib/tap/generator/generators/command/templates/command.erb
bahuvrihi-tap-0.10.2 lib/tap/generator/generators/command/templates/command.erb
bahuvrihi-tap-0.10.3 lib/tap/generator/generators/command/templates/command.erb
bahuvrihi-tap-0.10.4 lib/tap/generator/generators/command/templates/command.erb
bahuvrihi-tap-0.10.5 lib/tap/generator/generators/command/templates/command.erb
bahuvrihi-tap-0.10.6 lib/tap/generator/generators/command/templates/command.erb
bahuvrihi-tap-0.10.7 lib/tap/generator/generators/command/templates/command.erb
bahuvrihi-tap-0.10.8 lib/tap/generator/generators/command/templates/command.erb
tap-0.10.1 lib/tap/generator/generators/command/templates/command.erb
tap-0.10.0 lib/tap/generator/generators/command/templates/command.erb