Skip to content

Commit

Permalink
fix: help
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrieLii committed Feb 21, 2024
1 parent 244ff6a commit adf3424
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/solutions/app-tools/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ export const appTools = (
program
.command('upgrade')
.allowUnknownOption()
.option('-h --help', 'Show help') // In order to upgrade help work.
.action(async () => {
await upgradeAction();
});
Expand Down
1 change: 1 addition & 0 deletions packages/solutions/module-tools/src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export const upgradeCommand = async (program: Command) => {
program
.command('upgrade')
.allowUnknownOption()
.option('-h --help', 'Show help') // In order to upgrade help work.
.action(async () => {
await upgradeAction();
});
Expand Down
1 change: 1 addition & 0 deletions packages/solutions/monorepo-tools/src/cli/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const upgradeCli = (program: Command) => {
program
.command('upgrade')
.allowUnknownOption()
.option('-h --help', 'Show help') // In order to upgrade help work.
.action(async () => {
await upgradeAction();
});
Expand Down
2 changes: 2 additions & 0 deletions packages/toolkit/upgrade/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export function defineCommand(program: Command) {
const locale = getLocaleLanguage();
i18n.changeLanguage({ locale });
program
.alias('upgrade')
.description(i18n.t(localeKeys.command.describe))
.usage('npx @modern-js/upgrade [options]')
.option('-c --config <config>', i18n.t(localeKeys.command.config))
.option('--dist-tag <distTag>', i18n.t(localeKeys.command.distTag), '')
.option('--registry <registry>', i18n.t(localeKeys.command.registry), '')
Expand Down

0 comments on commit adf3424

Please sign in to comment.