diff --git a/src/help/upgrade.help.ts b/src/help/upgrade.help.ts index 33953b0..742afc0 100644 --- a/src/help/upgrade.help.ts +++ b/src/help/upgrade.help.ts @@ -10,7 +10,7 @@ Options: ${yellow('-t, --target')} Which module type should be upgraded? Valid targets are ${magenta('satellite')}, ${magenta('mission-control')} or ${magenta('orbiter')}. ${yellow('-s, --src')} An optional local gzipped WASM file for the upgrade. By default, the CDN will be used. ${yellow('-r, --reset')} Reset to the initial state. - ${yellow('-c, --clear-chunks')} Clear any previously uploaded WASM chunks (applies if the WASM size is greater than 2MB). + ${yellow('-cc, --clear-chunks')} Clear any previously uploaded WASM chunks (applies if the WASM size is greater than 2MB). ${helpMode} ${yellow('-h, --help')} Output usage information. diff --git a/src/services/upgrade/upgrade.mission-control.services.ts b/src/services/upgrade/upgrade.mission-control.services.ts index 6930a35..6a6e500 100644 --- a/src/services/upgrade/upgrade.mission-control.services.ts +++ b/src/services/upgrade/upgrade.mission-control.services.ts @@ -77,7 +77,7 @@ const updateMissionControlRelease = async ({ return {success: false}; } - const preClearChunks = hasArgs({args, options: ['-c', '--clear-chunks']}); + const preClearChunks = hasArgs({args, options: ['-cc', '--clear-chunks']}); const upgradeMissionControlWasm = async (params: UpgradeWasmModule) => { await upgradeMissionControlAdmin({ @@ -108,7 +108,7 @@ const upgradeMissionControlCustom = async ({ return {success: false}; } - const preClearChunks = hasArgs({args, options: ['-c', '--clear-chunks']}); + const preClearChunks = hasArgs({args, options: ['-cc', '--clear-chunks']}); const upgradeMissionControlWasm = async (params: UpgradeWasmModule) => { await upgradeMissionControlAdmin({ diff --git a/src/services/upgrade/upgrade.orbiter.services.ts b/src/services/upgrade/upgrade.orbiter.services.ts index 9cb0e5d..bf7e529 100644 --- a/src/services/upgrade/upgrade.orbiter.services.ts +++ b/src/services/upgrade/upgrade.orbiter.services.ts @@ -71,7 +71,7 @@ const upgradeOrbiterCustom = async ({ const reset = await confirmReset({args, assetKey: 'orbiter'}); - const preClearChunks = hasArgs({args, options: ['-c', '--clear-chunks']}); + const preClearChunks = hasArgs({args, options: ['-cc', '--clear-chunks']}); const upgradeOrbiterWasm = async (params: UpgradeWasmModule) => { await upgradeOrbiterAdmin({ @@ -115,7 +115,7 @@ const updateOrbiterRelease = async ({ const reset = await confirmReset({args, assetKey: 'orbiter'}); - const preClearChunks = hasArgs({args, options: ['-c', '--clear-chunks']}); + const preClearChunks = hasArgs({args, options: ['-cc', '--clear-chunks']}); const upgradeOrbiterWasm = async (params: UpgradeWasmModule) => { await upgradeOrbiterAdmin({ diff --git a/src/services/upgrade/upgrade.satellite.services.ts b/src/services/upgrade/upgrade.satellite.services.ts index 32b3521..ec2e644 100644 --- a/src/services/upgrade/upgrade.satellite.services.ts +++ b/src/services/upgrade/upgrade.satellite.services.ts @@ -76,7 +76,7 @@ const upgradeSatelliteCustom = async ({ satellite }); - const preClearChunks = hasArgs({args, options: ['-c', '--clear-chunks']}); + const preClearChunks = hasArgs({args, options: ['-cc', '--clear-chunks']}); const upgrade = async ( params: Pick @@ -111,7 +111,7 @@ const upgradeSatelliteRelease = async ({ return {success: false}; } - const preClearChunks = hasArgs({args, options: ['-c', '--clear-chunks']}); + const preClearChunks = hasArgs({args, options: ['-cc', '--clear-chunks']}); const upgrade = async ( params: Pick