projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8901bae
)
UpdateCurrencyRate.php
author
Edward
<edward@roojs.com>
Tue, 21 Oct 2014 02:47:47 +0000
(10:47 +0800)
committer
Edward
<edward@roojs.com>
Tue, 21 Oct 2014 02:47:47 +0000
(10:47 +0800)
UpdateCurrencyRate.php
patch
|
blob
|
history
diff --git
a/UpdateCurrencyRate.php
b/UpdateCurrencyRate.php
index
4f01963
..
bcf2dbe
100644
(file)
--- a/
UpdateCurrencyRate.php
+++ b/
UpdateCurrencyRate.php
@@
-7,7
+7,15
@@
class Pman_Core_UpdateCurrencyRate extends Pman
static $cli_desc = "Update Currency Exchange Rate";
- static $cli_opts = array();
+ static $cli_opts = array(
+ 'procedures-only' => array(
+ 'desc' => 'Only run procedures and return',
+ 'short' => 'p',
+ 'default' => false,
+ 'min' => 1,
+ 'max' => 1,
+ ),
+ );
var $cli = false;
@@
-28,7
+36,7
@@
class Pman_Core_UpdateCurrencyRate extends Pman
die("NOT ALLOWED");
}
- function get()
+ function get(
$args, $opts
)
{
$currency = array();