Skip to content

Commit

Permalink
Exit with return code 0, exit early with --help
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky authored Mar 20, 2024
1 parent fd3a0e0 commit b23003a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ import { Generator } from './generator';
else
options[name] = [];
}
const rootDir = path.resolve(process.cwd(), args[0] || '');
if (options.help) {
_printHelp();
process.exit(1);
process.exit(0);
}
const rootDir = path.resolve(process.cwd(), args[0] || '');
const generator = new Generator(rootDir, options);
await generator.run();
})().catch(error => {
Expand Down

0 comments on commit b23003a

Please sign in to comment.