From cb80a7ea3adf69b6960d8bd28637a886f5244332 Mon Sep 17 00:00:00 2001 From: chunyu3 Date: Mon, 27 Feb 2023 14:58:13 +0800 Subject: [PATCH] remove emitter name in the additional parameter --- eng/common/scripts/Cadl-Project-Generate.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/common/scripts/Cadl-Project-Generate.ps1 b/eng/common/scripts/Cadl-Project-Generate.ps1 index 632396bdcf..3e7ee781b0 100644 --- a/eng/common/scripts/Cadl-Project-Generate.ps1 +++ b/eng/common/scripts/Cadl-Project-Generate.ps1 @@ -6,7 +6,7 @@ param ( [ValidateNotNullOrEmpty()] [string] $ProjectDirectory, [Parameter(Position=1)] - [string] $CadlAdditionalOptions ## addtional cadl emitter options, separated by semicolon if more than one + [string] $CadlAdditionalOptions ## addtional cadl emitter options, separated by semicolon if more than one, e.g. option1=value1;option2=value2 ) $ErrorActionPreference = "Stop" @@ -83,7 +83,7 @@ try { if ($CadlAdditionalOptions) { $options = $CadlAdditionalOptions.Split(";"); foreach ($option in $options) { - $cadlCompileCommand += " --option $option" + $cadlCompileCommand += " --option $emitterName.$option" } } Write-Host($cadlCompileCommand)