= aerospace-reload-config(1)
include::util/man-attributes.adoc[]
:manname: aerospace-reload-config
// tag::purpose[]
:manpurpose: Reload currently active config
// end::purpose[]

// =========================================================== Synopsis
== Synopsis
[verse]
// tag::synopsis[]
aerospace reload-config [-h|--help] [--no-gui] [--dry-run] [--warnings-as-errors]

// end::synopsis[]

// =========================================================== Description
== Description

// tag::body[]
{manpurpose}

If the config contains errors they will be printed to stdout, and GUI will open to show the errors.

By default, warnings are written to stderr and do not open the diagnostics window.
With `--warnings-as-errors`, warnings are treated like errors: written to stdout, shown in the diagnostics window, and the exit code is non-zero.

// =========================================================== Options
include::util/conditional-options-header.adoc[]

-h, --help:: Print help.
--no-gui:: Don't open GUI to show error. Only use stdout to report errors.
--dry-run:: Validate the config and show errors (if any) but don't reload the config.
--warnings-as-errors:: Treat warnings as errors: print them to stdout, open the GUI diagnostics window, and return a non-zero exit code.

include::util/conditional-exit-code-header.adoc[]

0:: Success. The config contains no errors.
non-zero exit code:: Failure. The config contains errors.

// end::body[]

// =========================================================== Footer
include::util/man-footer.adoc[]
