We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7cc2ee commit 121754fCopy full SHA for 121754f
src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs
@@ -240,7 +240,9 @@ public static CommandLineBuilder UseEnvironmentVariableDirective(
240
var components = envDirective.Split(new[] { '=' }, count: 2);
241
var variable = components.Length > 0 ? components[0].Trim() : string.Empty;
242
if (string.IsNullOrEmpty(variable) || components.Length < 2)
243
+ {
244
continue;
245
+ }
246
var value = components[1].Trim();
247
SetEnvironmentVariable(variable, value);
248
}
0 commit comments