Class: GitlogMD::CLI
- Inherits:
-
Object
- Object
- GitlogMD::CLI
- Defined in:
- lib/gitlog-md/cli.rb
Constant Summary collapse
- VERSION_STRING =
" _________ {_________} )=======( / \\ GitlogMD | _________ | %10s || _ || || |_) || || | \\/ || __ || /\\ || __ (_|) |'---------'| (_|) `-.........-' "
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
Constructor Details
#initialize ⇒ CLI
Returns a new instance of CLI.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# 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 |