projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9717bcf
)
HTML/FlexyFramework/Cli.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 22 Feb 2012 05:10:01 +0000
(13:10 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 22 Feb 2012 05:10:01 +0000
(13:10 +0800)
HTML/FlexyFramework/Cli.php
patch
|
blob
|
history
diff --git
a/HTML/FlexyFramework/Cli.php
b/HTML/FlexyFramework/Cli.php
index
25a1dc4
..
bdb295b
100644
(file)
--- a/
HTML/FlexyFramework/Cli.php
+++ b/
HTML/FlexyFramework/Cli.php
@@
-256,7
+256,15
@@
Available commands:
$newargs = Console_Getargs::factory($val, $ar);
if (is_a($newargs, 'PEAR_Error')) {
- if ($newargs->getCode() === CONSOLE_GETARGS_ERROR_USER) {
+
+
+
+ if ($newargs->getCode() === CONSOLE_GETARGS_ERROR_USER) {
+
+ if (preg_match('/^Unknown argment/', $newargs->getMessage()) {
+ return false;
+ }
+
// User put illegal values on the command line.
echo Console_Getargs::getHelp($val,
$helpHeader, "\n\n".$newargs->getMessage(), 78, 4)."\n\n";