Skip to content

Instantly share code, notes, and snippets.

@ScreamingDev
Created February 13, 2014 15:16
Show Gist options
  • Select an option

  • Save ScreamingDev/8976874 to your computer and use it in GitHub Desktop.

Select an option

Save ScreamingDev/8976874 to your computer and use it in GitHub Desktop.
require 'colored'
require 'grit'
require 'optparse'
require_relative 'git-recap/version'
class GitRecap
def run(argv)
# process_args(argv)
options = {}
OptionParse.new do |opts|
opts.banner = "Usage: foo"
opts.on("-h", "--help", "Show help") do |v|
options[:help] = v
puts "HELP".red
end
end.parse!
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment