diff --git a/src/constants/help.constants.ts b/src/constants/help.constants.ts index d526b4c7..f40a83ac 100644 --- a/src/constants/help.constants.ts +++ b/src/constants/help.constants.ts @@ -43,11 +43,12 @@ 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('--hash')} The expected hash of all included changes (for verification).`; export const OPTION_HELP = `${yellow('-h, --help')} Output usage information.`; +export const OPTION_MODE = `${yellow('-m, --mode')} Choose which environment to use (production, staging, development). Defaults to production if omitted.`; export const OPTION_SRC = `${yellow('-s, --src')} A path to a specific local gzipped WASM file to publish.`; export const OPTIONS_UPGRADE = `${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. ${yellow('-r, --reset')} Reset to the initial state.`; -export const OPTIONS_URL = `${yellow('-m, --mode')} Set env mode. For example production or a custom string. Default is production. +export const OPTIONS_URL = `${OPTION_MODE} ${yellow('--container-url')} Override a custom container URL. If not provided, defaults to production or the local container in development mode. ${yellow('--console-url')} Specify a custom URL to access the developer Console.`; export const OPTIONS_BUILD = `${yellow('-l, --lang')} Specify the language for building the serverless functions: ${magenta('rust')}, ${magenta('typescript')} or ${magenta('javascript')}. diff --git a/src/help/login.help.ts b/src/help/login.help.ts index aa7d8771..b108ccf7 100644 --- a/src/help/login.help.ts +++ b/src/help/login.help.ts @@ -1,5 +1,5 @@ import {cyan, green, yellow} from 'kleur'; -import {LOGIN_DESCRIPTION, OPTION_HELP} from '../constants/help.constants'; +import {LOGIN_DESCRIPTION, OPTION_HELP, OPTION_MODE} from '../constants/help.constants'; import {helpOutput} from './common.help'; import {TITLE} from './help'; @@ -7,6 +7,7 @@ const usage = `Usage: ${green('juno')} ${cyan('login')} ${yellow('[options]')} Options: ${yellow('-b, --browser')} A particular browser to open. supported: chrome|firefox|edge. + ${OPTION_MODE} ${OPTION_HELP}`; const doc = `${LOGIN_DESCRIPTION}