@@ -148,17 +148,18 @@ function generatePackageArguments(envVars: EnvironmentVariable[]): unknown[] {
148148 // Generate positional arguments from the same config options (only documented ones)
149149 const documentedVars = envVars . filter ( ( v ) => ! v . description . startsWith ( "Configuration option:" ) ) ;
150150
151- for ( const envVar of documentedVars ) {
151+ // Generate named arguments from the same config options
152+ for ( const argument of documentedVars ) {
152153 const arg : Record < string , unknown > = {
153- type : "positional " ,
154- valueHint : envVar . configKey ,
155- description : envVar . description ,
156- isRequired : envVar . isRequired ,
154+ type : "named " ,
155+ name : "--" + argument . configKey ,
156+ description : argument . description ,
157+ isRequired : argument . isRequired ,
157158 } ;
158159
159160 // Add format if it's not string (string is the default)
160- if ( envVar . format !== "string" ) {
161- arg . format = envVar . format ;
161+ if ( argument . format !== "string" ) {
162+ arg . format = argument . format ;
162163 }
163164
164165 packageArguments . push ( arg ) ;
@@ -197,7 +198,7 @@ function updateServerJsonEnvVars(envVars: EnvironmentVariable[]): void {
197198 isSecret : v . isSecret ,
198199 } ) ) ;
199200
200- // Generate package arguments (positional arguments in camelCase)
201+ // Generate package arguments (named arguments in camelCase)
201202 const packageArguments = generatePackageArguments ( envVars ) ;
202203
203204 // Update version at root level
0 commit comments