Sha256: 694f1b461da33b199bdc07de1516a8326cfa1a1c2212f070e3eb962c89b221be
Contents?: true
Size: 700 Bytes
Versions: 15
Compression:
Stored size: 700 Bytes
Contents
require 'agilib' require 'optparse' module Agilib class Cli def self.run(args, out = STDOUT) OptionParser.new{ |opts| opts.banner = "Usage:\n agilib [options] <location>" opts.separator "\nOptions: " opts.on_tail("-v", "--version", "Print version number") do require "agilib/version" out << "Agilib #{Agilib::VERSION}\n" exit end opts.on_tail("-h", "--help", "Print this help") do out << "Agilib Help.\n\n" out << opts out << "\nCreated and maintained by Agivis Web & Mobile, available under the MIT License.\n" exit end }.parse!(args) end end end
Version data entries
15 entries across 15 versions & 1 rubygems