Builtinarg handler

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_builtinarg_handler

Purpose

Apply built-in Framework options parsed from the command line.

Description

Applies log and theme settings, displays requested information and handles state reset. Help and show operations terminate the current script after displaying the requested information.

Inputs (globals)

FLAG_LOG, FLAG_HELP, FLAG_STATERESET, FLAG_DRYRUN, ARG_LOGLEVEL, ARG_THEME, ARG_SHOW.

Side effects

May change logging/theme state or reset the saved state; information-only actions exit the script.

Returns

  • 0 when normal processing completes; non-zero for invalid show targets or failed theme selection. Help/show actions exit with status 0.

Usage

  sgnd_builtinarg_handler