Skip to content

IConfigOption Interface ​

Definition ​

Describes a configuration option that can be populated from command-line arguments, environment variables, or a default value. Apply to properties on a config class.

  • Namespace: JASE.Interfaces
  • Assembly: JASE.dll

Properties ​

NameDescription
DefaultA default value to use if neither the flag nor environment variable is provided.
DescriptionA description of the option to display in help output.
EnvironmentThe name of the environment variable to use as a fallback if the flag is not provided.
NameThe command-line name used to identify this option (e.g., "--port" or "-p").
RequiredIndicates whether this option is required. If true and no value is provided,
ShortNameShort name alias for the command option (e.g., "-p").