Sha256: a777bb9fc3c6069ac6c42cd940807ee33453e6f43dff3e6d4f1e64ce8ef7c796

Contents?: true

Size: 571 Bytes

Versions: 3

Compression:

Stored size: 571 Bytes

Contents

#!/usr/bin/env ruby

require 'optparse'
require 'todidnt'

options = {:path => '.'}
command = ARGV.shift

ARGV.options do |opts|
  opts.on('-p', '--path PATH', 'Git directory to run Todidnt in (default: current directory)') do |path|
    options[:path] = path
  end

  opts.on('-d', '--date STRING', 'Fuzzy string for overdue date comparison, e.g. last week or 7/2/2013 (default: today)') do |date|
    options[:date] = date
  end

  opts.on_tail('-h', '--help', 'Show this message') do
    puts opts
    exit
  end

  opts.parse!
end

Todidnt::CLI.run(command, options)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
todidnt-0.3.1 bin/todidnt
todidnt-0.2.0 bin/todidnt
todidnt-0.1.0 bin/todidnt