Skip to content

Commit

Permalink
fix(cli): await the yargs.parse call
Browse files Browse the repository at this point in the history
Closes #4265
  • Loading branch information
B4nan committed Apr 24, 2023
1 parent ed5f778 commit 3757472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/cli/src/CLIConfigurator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export class CLIConfigurator {
}
}

// noinspection HtmlDeprecatedTag
return yargs
.scriptName('mikro-orm')
.version(version)
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import { CLIHelper } from './CLIHelper';
import { CLIConfigurator } from './CLIConfigurator';

(async () => {
const args = (await CLIConfigurator.configure()).parse(process.argv.slice(2)) as { _: string[] };
const argv = await CLIConfigurator.configure();
const args = await argv.parse(process.argv.slice(2)) as { _: string[] };

if (args._.length === 0) {
CLIHelper.showHelp();
Expand Down

0 comments on commit 3757472

Please sign in to comment.