projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf756a9
)
HTML/FlexyFramework/Cli.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 22 Feb 2012 04:57:04 +0000
(12:57 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 22 Feb 2012 04:57:04 +0000
(12:57 +0800)
HTML/FlexyFramework/Cli.php
patch
|
blob
|
history
diff --git
a/HTML/FlexyFramework/Cli.php
b/HTML/FlexyFramework/Cli.php
index
bd1fcc7
..
8f893be
100644
(file)
--- a/
HTML/FlexyFramework/Cli.php
+++ b/
HTML/FlexyFramework/Cli.php
@@
-257,7
+257,12
@@
Available commands:
if (!is_a($newargs, 'PEAR_Error')) {
return $newargs->getValues();
}
-
+ if ($newargs->getCode() === CONSOLE_GETARGS_ERROR_USER) {
+ // User put illegal values on the command line.
+ echo Console_Getargs::getHelp($val,
+ $helpHeader, "\n\n".$newargs->getMessage(), 78, 4)."\n\n";
+ exit;
+ }
if ($newargs->getCode() === CONSOLE_GETARGS_HELP) {
return true;// hel