We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8eb22d5 commit 31b0236Copy full SHA for 31b0236
1 file changed
lib/server.js
@@ -87,6 +87,8 @@ function buildHelp(defaultServer) {
87
opts = opts.concat(method.options);
88
}
89
opts.forEach(function eachOptions(option) {
90
+ var nokey = method.nokey && method.nokey.indexOf(option) > -1;
91
+
92
Object.keys(option).forEach(function eachOption(optKey) {
93
var opt = option[optKey];
94
@@ -96,8 +98,7 @@ function buildHelp(defaultServer) {
96
98
97
99
100
options[[
- opt.key,
- ', ',
101
+ opt.key && !nokey ? opt.key + ', ' : '',
102
optKey
103
].join('')] = optKey === 'server' ?
104
opt.info.replace('%s', defaultServer) : opt.info;
0 commit comments