Expand description
The notedthat-server command line.
Every setting the server reads is reachable two ways: as an environment
variable, and as the long flag named after it. When both are supplied the
flag wins — that precedence is clap’s, granted by env = "..." on each
argument, and it is the whole reason this layer exists.
What this type deliberately does not do is validate. Every field is an
Option of an unparsed value, so requiredness, ranges, enumerations and
cross-setting rules all stay in crate::config, stated once and reached
identically from either source. It also keeps the diagnostics: clap’s
own “the following required arguments were not provided” would replace
messages that name the environment variable an operator is looking for.
Structs§
- Server
Cli - Command-line arguments, each mirroring one environment variable.