From 87e9236af1698346f42e390b99d082cdca46b9f3 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 28 Feb 2023 14:57:02 +0100 Subject: [PATCH] Cli::handle_args(): Make $core_mode default value as false To avoid to have to have to explicitly set in non core mode. --- src/Cli.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cli.php b/src/Cli.php index b687e56..5f5b896 100644 --- a/src/Cli.php +++ b/src/Cli.php @@ -164,10 +164,10 @@ class Cli { /** * Handle command line arguments * @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 */ - public static function handle_args($args=null, $core_mode=null) { + public static function handle_args($args=null, $core_mode=false) { global $argv; self :: core_mode($core_mode); $args = is_array($args)?$args:array_slice($argv, 1);