Appearance
CommandLineOptionAttribute Class
Definition
Defines 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.Attributes - Assembly:
JASE.dll
Constructors
| Name | Description |
|---|---|
CommandLineOptionAttribute() |
Properties
| Name | Description |
|---|---|
Default | A default value to use if neither the flag nor environment variable is provided. |
Description | A description of the option to display in help output. |
Environment | The name of the environment variable to use as a fallback if the flag is not provided. |
Name | The command-line name used to identify this option (e.g., "--port" or "-p"). |
Required | Indicates whether this option is required. If true and no value is provided, |
ShortName | Short name alias for the command option (e.g., "-p"). |