Cli::handle_args(): Make $core_mode default value as false
To avoid to have to have to explicitly set in non core mode.
This commit is contained in:
parent
1409362d8e
commit
87e9236af1
1 changed files with 2 additions and 2 deletions
|
@ -164,10 +164,10 @@ class Cli {
|
||||||
/**
|
/**
|
||||||
* Handle command line arguments
|
* Handle command line arguments
|
||||||
* @param array|null $args Command line argurment to handle (optional, default: $argv)
|
* @param array|null $args Command line argurment to handle (optional, default: $argv)
|
||||||
* @param bool|null $core_mode Force enable/disable EesyPHP core mode (optional, default: null)
|
* @param bool|null $core_mode Force enable/disable EesyPHP core mode (optional, default: false)
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function handle_args($args=null, $core_mode=null) {
|
public static function handle_args($args=null, $core_mode=false) {
|
||||||
global $argv;
|
global $argv;
|
||||||
self :: core_mode($core_mode);
|
self :: core_mode($core_mode);
|
||||||
$args = is_array($args)?$args:array_slice($argv, 1);
|
$args = is_array($args)?$args:array_slice($argv, 1);
|
||||||
|
|
Loading…
Reference in a new issue