@@ -13,7 +13,7 @@ import { ensureCloudflareConfig } from "../build/utils/index.js";
1313
1414export type WithWranglerArgs < T = unknown > = T & {
1515 wranglerArgs : string [ ] ;
16- config : string | undefined ;
16+ configPath : string | undefined ;
1717 env : string | undefined ;
1818} ;
1919
@@ -77,9 +77,9 @@ export function setupCompiledAppCLI(command: string, args: WithWranglerArgs) {
7777
7878export function withWranglerOptions < T extends yargs . Argv > ( args : T ) {
7979 return args
80- . options ( "config " , {
80+ . options ( "configPath " , {
8181 type : "string" ,
82- alias : "c" ,
82+ alias : [ "config" , "c" ] ,
8383 desc : "Path to Wrangler configuration file" ,
8484 } )
8585 . options ( "env" , {
@@ -91,11 +91,11 @@ export function withWranglerOptions<T extends yargs.Argv>(args: T) {
9191
9292function getWranglerArgs ( args : {
9393 _ : ( string | number ) [ ] ;
94- config : string | undefined ;
94+ configPath : string | undefined ;
9595 env : string | undefined ;
9696} ) : string [ ] {
9797 return [
98- ...( args . config ? [ "--config" , args . config ] : [ ] ) ,
98+ ...( args . configPath ? [ "--config" , args . configPath ] : [ ] ) ,
9999 ...( args . env ? [ "--env" , args . env ] : [ ] ) ,
100100 // Note: the first args in `_` will be the commands.
101101 ...args . _ . slice ( args . _ [ 0 ] === "populateCache" ? 2 : 1 ) . map ( ( a ) => `${ a } ` ) ,
@@ -104,7 +104,7 @@ function getWranglerArgs(args: {
104104
105105export function withWranglerPassthroughArgs <
106106 T extends yargs . ArgumentsCamelCase < {
107- config : string | undefined ;
107+ configPath : string | undefined ;
108108 env : string | undefined ;
109109 } > ,
110110> ( args : T ) {
0 commit comments