in src/Google.Cloud.Functions.Hosting/HostingInternals.cs [43:59]
internal static IConfigurationBuilder AddCommandLineArguments(IConfigurationBuilder configBuilder, string[] args)
{
if (args is null || args.Length == 0)
{
return configBuilder;
}
if (args.Length == 1)
{
if (args[0] == "%LAUNCHER_ARGS%")
{
throw new InvalidOperationException("Unable to launch Web SDK project with launch settings. Please see https://github.com/GoogleCloudPlatform/functions-framework-dotnet/blob/main/docs/launch-settings.md");
}
args = new[] { "--target", args[0] };
}
configBuilder.AddCommandLine(args, CommandLineMappings);
return configBuilder;
}