Skip to content

Commit

Permalink
Merge pull request #87 from vaclavbohac/fix-help
Browse files Browse the repository at this point in the history
Print usage info on run without params
  • Loading branch information
vickash committed Sep 12, 2017
2 parents 15cd48e + d735be1 commit 41dfcf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/dino
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def usage
end

# Command must be the first argument.
$options[:command] = ARGV.shift
$options[:command] = ARGV.shift || 'help'
usage if $options[:command].match /help/

# Parse the rest loosely.
Expand Down Expand Up @@ -105,4 +105,4 @@ $options[:sketch_names].each do |sketch_name|
File.open(dest_header, 'w') { |f| f.write header }
File.open(dest_implementation, 'w') { |f| f.write implementation }
File.open(dest_sketch, 'w') { |f| f.write sketch }
end
end

0 comments on commit 41dfcf5

Please sign in to comment.