Skip to content

Commit

Permalink
Correct comment on --help (#16391)
Browse files Browse the repository at this point in the history
The comment on the two different `--help` sections matched, though their logic if what was handled was slightly different.

This adjusts the comments to clarify that difference.

This is completely unrelated to function, but I noticed it while reviewing code and thought I'd PR the fix.
  • Loading branch information
sclm authored Aug 20, 2020
1 parent fa449d9 commit 3e81809
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next/bin/next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ if (args['--version']) {
// Check if we are running `next <subcommand>` or `next`
const foundCommand = Boolean(commands[args._[0]])

// Makes sure the `next <subcommand> --help` case is covered
// Makes sure the `next --help` case is covered
// This help message is only showed for `next --help`
// `next <subcommand> --help` falls through to be handled later
if (!foundCommand && args['--help']) {
console.log(`
Usage
Expand Down

0 comments on commit 3e81809

Please sign in to comment.