akkudoktoreos.server.rest.cli.cli_apply_args_to_config

akkudoktoreos.server.rest.cli.cli_apply_args_to_config(args: Namespace) None

Apply parsed CLI arguments to the EOS configuration.

This function updates the EOS configuration with values provided via the command line. For each parameter, the precedence is:

CLI argument > existing config value > default value

Currently handled arguments:

  • log_level: Updates “logging/console_level” in config.

  • host: Updates “server/host” in config.

  • port: Updates “server/port” in config.

  • startup_eosdash: Updates “server/startup_eosdash” in config.

  • eosdash_host/port: Initialized if EOSdash is enabled and not already set.

Parameters:

args – Parsed command-line arguments from argparse.