diff options
author | MaleDong <maledong_github@outlook.com> | 2019-02-11 07:32:26 +0800 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-02-14 00:03:02 +0100 |
commit | 1411f7c8b3fc3a9be865c91ce98318c9cd459bdb (patch) | |
tree | 66ad130d102bd8b9cd1cd6f2c87a6fd097929eae | |
parent | 4aa04f57c3fe7df816229d14e7d0a8e9da9708da (diff) | |
download | android-node-v8-1411f7c8b3fc3a9be865c91ce98318c9cd459bdb.tar.gz android-node-v8-1411f7c8b3fc3a9be865c91ce98318c9cd459bdb.tar.bz2 android-node-v8-1411f7c8b3fc3a9be865c91ce98318c9cd459bdb.zip |
lib: merge 'undefined' into one 'break' branch
We don't need to split this alone, but just merge it into the 'break'
switch branch together.
PR-URL: https://github.com/nodejs/node/pull/26039
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r-- | lib/internal/main/print_help.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/internal/main/print_help.js b/lib/internal/main/print_help.js index ca60994d94..ef1cb9ce4b 100644 --- a/lib/internal/main/print_help.js +++ b/lib/internal/main/print_help.js @@ -65,6 +65,7 @@ function getArgDescription(type) { case 'kNoOp': case 'kV8Option': case 'kBoolean': + case undefined: break; case 'kHostPort': return '[host:]port'; @@ -73,8 +74,6 @@ function getArgDescription(type) { case 'kString': case 'kStringList': return '...'; - case undefined: - break; default: require('assert').fail(`unknown option type ${type}`); } |