Skip to content

Commit

Permalink
tweaks from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cldwalker committed Apr 7, 2012
1 parent 4159251 commit 9881831
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/boson/runner.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class DefaultCommandsRunner < Runner
desc "Displays help for a command" desc "Displays help for a command"
def help(cmd = nil) def help(cmd = nil)
if cmd.nil? if cmd.nil?
Runner.current.display_help() Runner.current.display_help
else else
(cmd_obj = Command.find(cmd)) ? Runner.current.display_command_help(cmd_obj) : (cmd_obj = Command.find(cmd)) ? Runner.current.display_command_help(cmd_obj) :
self.class.no_command_error(cmd) self.class.no_command_error(cmd)
Expand Down
2 changes: 1 addition & 1 deletion test/runner_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def default_usage
with("my_command: Could not find command \"invalid\"") with("my_command: Could not find command \"invalid\"")
my_command('help invalid') my_command('help invalid')
end end

it 'prints general help if no command' do it 'prints general help if no command' do
my_command('help').should == default_usage my_command('help').should == default_usage
end end
Expand Down

0 comments on commit 9881831

Please sign in to comment.