From d84a85c91ca16916ddb4055b34d9b70c684ee359 Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 21 Oct 2014 10:47:47 +0800 Subject: [PATCH] UpdateCurrencyRate.php --- UpdateCurrencyRate.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/UpdateCurrencyRate.php b/UpdateCurrencyRate.php index 4f01963d..bcf2dbee 100644 --- 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(); -- 2.39.2