From 3e81809df44e5c36a52abc89b46bc53f18b83695 Mon Sep 17 00:00:00 2001 From: Stephen McMillen <240648+sclm@users.noreply.github.com> Date: Thu, 20 Aug 2020 09:32:55 -0400 Subject: [PATCH] Correct comment on --help (#16391) 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. --- packages/next/bin/next.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/next/bin/next.ts b/packages/next/bin/next.ts index 5c4cc27f6795c..d8ff56286a5f4 100755 --- a/packages/next/bin/next.ts +++ b/packages/next/bin/next.ts @@ -50,8 +50,9 @@ if (args['--version']) { // Check if we are running `next ` or `next` const foundCommand = Boolean(commands[args._[0]]) -// Makes sure the `next --help` case is covered +// Makes sure the `next --help` case is covered // This help message is only showed for `next --help` +// `next --help` falls through to be handled later if (!foundCommand && args['--help']) { console.log(` Usage