Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (26 sloc) 0.488 kb
require 'kirk'
require 'optparse'
module Kirk
class CLI
def self.start(argv)
new(argv).tap { |inst| inst.run }
end
def initialize(argv)
@argv = argv.dup
@options = {}
end
def run
parse!
end
private
def parser
@parser ||= OptionParser.new do |opts|
opts.banner = "Usage: kirk [options] <command> [<args>]"
opts.separator ""
end
end
def parse!
parser.parse! @argv
end
end
end
Jump to Line
Something went wrong with that request. Please try again.