Skip to content

Commit

Permalink
Fixup behavior when execute bin with no arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
epaew committed Oct 19, 2019
1 parent 95a93ab commit e0e7618
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/ecg/option_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def initialize(args)
end

def parse!
print_help(false) if @args.empty?

parser.parse!(@args)
print_help(false) if @args.length > 1

Expand Down
2 changes: 1 addition & 1 deletion lib/ecg/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module ECG
VERSION = '0.1.0'
VERSION = '0.1.1'
end

0 comments on commit e0e7618

Please sign in to comment.