Permalink
Browse files

tweaks from previous commit

  • Loading branch information...
1 parent 4159251 commit 9881831c6fb56eaa1d5555dda76c9fa6af9eb202 @cldwalker committed Apr 7, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/boson/runner.rb
  2. +1 −1 test/runner_test.rb
View
@@ -93,7 +93,7 @@ class DefaultCommandsRunner < Runner
desc "Displays help for a command"
def help(cmd = nil)
if cmd.nil?
- Runner.current.display_help()
+ Runner.current.display_help
else
(cmd_obj = Command.find(cmd)) ? Runner.current.display_command_help(cmd_obj) :
self.class.no_command_error(cmd)
View
@@ -130,7 +130,7 @@ def default_usage
with("my_command: Could not find command \"invalid\"")
my_command('help invalid')
end
-
+
it 'prints general help if no command' do
my_command('help').should == default_usage
end

0 comments on commit 9881831

Please sign in to comment.