diff --git a/src/commands/deploy.ts b/src/commands/deploy.ts index b7eda029..d386d6fd 100644 --- a/src/commands/deploy.ts +++ b/src/commands/deploy.ts @@ -38,7 +38,7 @@ export const deploy = async (args?: string[]) => { }; const deployWithProposal = async ({args, clearOption}: {args?: string[]; clearOption: boolean}) => { - const noCommit = hasArgs({args, options: ['-na', '--no-apply']}); + const noCommit = hasArgs({args, options: ['--no-apply']}); const deployFn = async ({ deploy, diff --git a/src/constants/help.constants.ts b/src/constants/help.constants.ts index f2187c24..b1fbaf95 100644 --- a/src/constants/help.constants.ts +++ b/src/constants/help.constants.ts @@ -41,11 +41,11 @@ export const CHANGES_APPLY_DESCRIPTION = 'Apply a submitted change.'; export const CHANGES_REJECT_DESCRIPTION = 'Reject a change.'; export const OPTION_KEEP_STAGED = `${yellow('-k, --keep-staged')} Keep staged assets in memory after applying the change.`; -export const OPTION_HASH = `${yellow('-a, --hash')} The expected hash of all included changes (for verification).`; +export const OPTION_HASH = `${yellow('--hash')} The expected hash of all included changes (for verification).`; export const OPTION_HELP = `${yellow('-h, --help')} Output usage information.`; export const OPTION_SRC = `${yellow('-s, --src')} A path to a specific local gzipped WASM file to publish.`; export const OPTIONS_UPGRADE = `${yellow('-r, --reset')} Reset to the initial state. - ${yellow('-cc, --clear-chunks')} Clear any previously uploaded WASM chunks (applies if the WASM size is greater than 2MB). - ${yellow('-ns, --no-snapshot')} Skip creating a snapshot before upgrading.`; + ${yellow('--clear-chunks')} Clear any previously uploaded WASM chunks (applies if the WASM size is greater than 2MB). + ${yellow('--no-snapshot')} Skip creating a snapshot before upgrading.`; export const NOTE_KEEP_STAGED = `The option ${yellow('--keep-staged')} only applies when ${yellow('--no-apply')} is NOT used (i.e. the change is applied immediately).`; diff --git a/src/help/deploy.help.ts b/src/help/deploy.help.ts index 3245548b..1217d9c6 100644 --- a/src/help/deploy.help.ts +++ b/src/help/deploy.help.ts @@ -12,7 +12,7 @@ const usage = `Usage: ${green('juno')} ${cyan('deploy')} ${yellow('[options]')} Options: ${yellow('-c, --clear')} Clear existing app files before proceeding with deployment. - ${yellow('-na, --no-apply')} Submit the deployment as a change but do not apply it yet. + ${yellow('--no-apply')} Submit the deployment as a change but do not apply it yet. ${OPTION_KEEP_STAGED} ${yellow('-i, --immediate')} Deploy files instantly (bypasses the change workflow). ${helpMode} diff --git a/src/help/functions.publish.help.ts b/src/help/functions.publish.help.ts index e185943a..ef26f3c3 100644 --- a/src/help/functions.publish.help.ts +++ b/src/help/functions.publish.help.ts @@ -12,7 +12,7 @@ import {TITLE} from './help'; const usage = `Usage: ${green('juno')} ${cyan('functions')} ${magenta('publish')} ${yellow('[options]')} Options: - ${yellow('-na, --no-apply')} Submit the release as a change but do not apply it yet. + ${yellow('--no-apply')} Submit the release as a change but do not apply it yet. ${OPTION_KEEP_STAGED} ${OPTION_SRC} ${OPTION_HELP} diff --git a/src/services/functions/publish.services.ts b/src/services/functions/publish.services.ts index 4b0801f5..44495b2e 100644 --- a/src/services/functions/publish.services.ts +++ b/src/services/functions/publish.services.ts @@ -90,7 +90,7 @@ const publishWasmWithProposal = async ({ version }: Omit & FilePaths & {version: string}): Promise => { - const noCommit = hasArgs({args, options: ['-na', '--no-apply']}); + const noCommit = hasArgs({args, options: ['--no-apply']}); const uploadFileFn = async ({ fullPath: storagePath, diff --git a/src/utils/changes.utils.ts b/src/utils/changes.utils.ts index e171d51c..9af3e4ee 100644 --- a/src/utils/changes.utils.ts +++ b/src/utils/changes.utils.ts @@ -17,7 +17,7 @@ export const readChangesIdAndHash = (args?: string[]): {proposalId: bigint; hash const proposalId = toBigInt(); - const hash = nextArg({args, option: '-a'}) ?? nextArg({args, option: '--hash'}); + const hash = nextArg({args, option: '--hash'}); assertNonNullish(hash, 'A hash must be provided'); diff --git a/src/utils/upgrade.utils.ts b/src/utils/upgrade.utils.ts index 7771f485..84273e52 100644 --- a/src/utils/upgrade.utils.ts +++ b/src/utils/upgrade.utils.ts @@ -40,8 +40,8 @@ export const newerReleases = async ({ export const readUpgradeOptions = ( args?: string[] ): {noSnapshot: boolean; preClearChunks: boolean} => { - const noSnapshot = hasArgs({args, options: ['-ns', '--no-snapshot']}); - const preClearChunks = hasArgs({args, options: ['-cc', '--clear-chunks']}); + const noSnapshot = hasArgs({args, options: ['--no-snapshot']}); + const preClearChunks = hasArgs({args, options: ['--clear-chunks']}); return {noSnapshot, preClearChunks}; };