diff --git a/Mage/Command/AbstractCommand.php b/Mage/Command/AbstractCommand.php
index 8a0e561..18d045a 100644
--- a/Mage/Command/AbstractCommand.php
+++ b/Mage/Command/AbstractCommand.php
@@ -180,6 +180,12 @@ abstract class AbstractCommand
}
}
+ if (empty($output)) {
+ $output .= "\n";
+ $output .= "Sorry, there's no help for this command at the moment.";
+ $output .= "\n";
+ }
+
return $output;
}
}
diff --git a/tests/MageTest/Command/AbstractCommandTest.php b/tests/MageTest/Command/AbstractCommandTest.php
index b903f7c..52b8278 100644
--- a/tests/MageTest/Command/AbstractCommandTest.php
+++ b/tests/MageTest/Command/AbstractCommandTest.php
@@ -229,6 +229,14 @@ class AbstractCommandTest extends BaseTest
. " mage example\n"
. " * Runs the command with lights:\n"
. " mage example light\n"
+ ),
+ "no_info_at_all" => array(
+ 'name' => '',
+ 'helpMessage' => '',
+ 'examples' => array(),
+ 'syntax' => '',
+ 'output' => "\n"
+ . "Sorry, there's no help for this command at the moment.\n"
)
);
}