projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f77659
)
HTML/FlexyFramework/Cli.php
author
Alan Knowles
<alan@roojs.com>
Fri, 15 Nov 2013 05:24:42 +0000
(13:24 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 15 Nov 2013 05:24:42 +0000
(13:24 +0800)
HTML/FlexyFramework/Cli.php
patch
|
blob
|
history
diff --git
a/HTML/FlexyFramework/Cli.php
b/HTML/FlexyFramework/Cli.php
index
f5257cb
..
88b92a3
100644
(file)
--- a/
HTML/FlexyFramework/Cli.php
+++ b/
HTML/FlexyFramework/Cli.php
@@
-198,9
+198,12
@@
Available commands:
//var_dump($cls);
try {
- if (method_exists($classname, 'cli_opts')) {
-
- $vadd = $cls->getStaticPropertyValue('cli_opts') ;
+
+ if (method_exists($cls->name, 'cli_opts')) {
+ $val = {$cls->name}::cli_opts();
+ } else {
+ $vadd = $cls->getStaticPropertyValue('cli_opts') ;
+ }
$val = array_merge($val, is_array($vadd) ? $vadd : array() );
} catch (Exception $e) {
continue;