Sha256: e165d66457662e7c03024620faffa55991a405188ef4a92266a0055059290748

Contents?: true

Size: 477 Bytes

Versions: 2

Compression:

Stored size: 477 Bytes

Contents

#!/usr/bin/env ruby

require 'optparse'
require 'annotate'

task = :annotate_models

OptionParser.new do |opts|
  opts.banner = "Usage: annotate [options]"
  opts.on('-d', '--delete') { task = :remove_annotation }
  opts.on('-p', '--position [before|after]', ['before', 'after']) { |p| ENV['position'] = p }
  opts.on('-r', '--routes') { task = :annotate_routes }
  opts.on('-v', '--version') { puts "Annotate v#{Annotate::VERSION}"; exit }
end.parse!

Rake::Task[task].invoke

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nofxx-annotate-2.1.1 bin/annotate
nofxx-annotate-2.2.2 bin/annotate