Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/ts-command-line > IBaseCommandLineDefinition > allowNonStandardEnvironmentVariableNames

IBaseCommandLineDefinition.allowNonStandardEnvironmentVariableNames property

Allows for the use of environment variable names that do not conform to the standard described by the Shell and Utilities volume of IEEE Std 1003.1-2001. This disables the validation that is performed on the provided IBaseCommandLineDefinition.environmentVariable value by default.

Signature:

allowNonStandardEnvironmentVariableNames?: boolean;

Remarks

if this is set to true, environment variable discovery will vary based on the platform in use. For example, Windows environment variable names are case-insensitive, while on Linux, environment variable names are case-sensitive. It is recommended that this option be used only when necessary based on environmental constraints.