lib/autumn/tool/bin.rb
# This class contains the command methods {{{
This class contains the command methods {{{
This class contains the command methods {{{
def create_options(opts = {})
          @create_opts ||= OptionParser.new do |o|
            o.banner = "Create Options"
            o.on("-f", "--force", "Force creation if dir already exists") { |yn| opts[:force] = true }
            o.on("-a", "--amend", "Update a tree") { |yn| opts[:amend] = true }
          end
        end
def create_options ( opts = { } ) @create_opts ||= OptionParser . new do | o | o . banner = "Create Options" o . on ( "-f" , "--force" , "Force creation if dir already exists" ) { | yn | opts [ :force ] = true } o . on ( "-a" , "--amend" , "Update a tree" ) { | yn | opts [ :amend ] = true } end end
This class contains the command methods {{{
This class contains the command methods {{{
opts