class GitlogMD::CLI
Constants
- VERSION_STRING
Public Class Methods
new()
click to toggle source
# File lib/gitlog-md/cli.rb, line 17 def initialize @arg_parser = GitlogMD::ArgumentParser.new @options = @arg_parser.parse @run = true if @options[:help] puts @arg_parser.usage @run = false return end if @options[:version] puts VERSION_STRING % GitlogMD::Version::STRING @run = false return end end
Public Instance Methods
execute()
click to toggle source
# File lib/gitlog-md/cli.rb, line 34 def execute if @run GitlogMD::Parser.new.make_md(@options) end end