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:
Benjamin Renard 2023-02-28 14:57:02 +01:00
parent 1409362d8e
commit 87e9236af1
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -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);