Skip to content

Commit

Permalink
Proxy help commands to -h OptionParser format. (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
askreet committed Oct 17, 2016
1 parent 1dcc75f commit a765ffa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/moonshot/command_line.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ module Moonshot
# This class implements the command-line `moonshot` tool.
class CommandLine
def self.run! # rubocop:disable AbcSize, CyclomaticComplexity, MethodLength, PerceivedComplexity
# If this is a legacy (Thor) help command, re-write it as
# OptionParser format.
if ARGV[0] == 'help'
ARGV.delete_at(0)
ARGV.push('-h')
end

# Find the Moonfile in this project.
orig_dir = Dir.pwd

Expand Down

0 comments on commit a765ffa

Please sign in to comment.