Skip to content

Commit

Permalink
fixed bug npx docusaurus --version incorrect program termination status
Browse files Browse the repository at this point in the history
  • Loading branch information
ashiq-firoz committed Aug 3, 2024
1 parent 7be1fea commit 2fd5b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus/bin/docusaurus.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function isInternalCommand(command) {

// There is no subcommand
// TODO: can we use commander to handle this case?
if (process.argv.length < 3 || process.argv[2]?.startsWith('--')) {
if (process.argv.length < 3 || process.argv[2]?.startsWith('--') && process.argv[2]?!="--version") {
cli.outputHelp();
process.exit(1);
}
Expand Down

0 comments on commit 2fd5b3a

Please sign in to comment.