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' => '',
+ 'min' => 1,
+ 'max' => 1,
+ ),
+ );
var $cli = false;
die("NOT ALLOWED");
}
- function get()
+ function get($args, $opts)
{
$currency = array();
}
}
- $this->jok("DONE");
+ if(empty($opts['procedures-only'])){
+ $this->jok("DONE");
+ }
+ return;
}
function processCurrRate($currency, $rate, $from, $to)