fn: main
Purpose
Provide a concise command-line interface to the framework preferences also used by the Management Console.
Arguments
$@— Framework built-in options followed by optional SETTING VALUE positionals.
Behavior
- With no positionals, displays the current transferable preferences.
- Supports consoleloglevel, fileloglevel, and theme.
- Uses the framework-provided --help and --dryrun behavior.
- Persists log levels through SGND_FRAMEWORK_STATEFILE.
- Applies themes through sgnd_theme, which also updates framework state.
Returns
0 on success; 2 for invalid command syntax; non-zero for validation/persistence errors.
Usage
main "$@"
