@@ -130,7 +130,8 @@ const format = (message, options={}) => {
130
130
131
131
const { command, docs, title, breadcrumb= title || command , header= docs && `${ docs } .` , example, detailedExample, sampleInputs,
132
132
commandPrefix, commandPrefixNotNeeded,
133
- available, parents= [ ] , related, required, optional, oneof } = usage
133
+ available, parents= [ ] , related, required, optional, oneof } = usage ,
134
+ outerCommandPrefix = commandPrefix
134
135
135
136
// the return value will be `result`; we will populate it with
136
137
// those fields now; `body` is the flex-wrap portion of the
@@ -338,7 +339,7 @@ const format = (message, options={}) => {
338
339
339
340
// fields of the row model
340
341
// debug('row', rowData)
341
- const { commandPrefix, command= commandPrefix , name= command , label= name ,
342
+ const { commandPrefix= outerCommandPrefix , command= commandPrefix , name= command , label= name ,
342
343
alias, numeric, aliases= [ alias ] , hidden= false , advanced= false ,
343
344
available,
344
345
example= numeric && 'N' , dir :isDir = available || false ,
@@ -358,7 +359,7 @@ const format = (message, options={}) => {
358
359
docsPart = span ( docs ) ,
359
360
allowedPart = allowed && smaller ( span ( undefined ) )
360
361
361
- // for repl.exec,
362
+ // for repl.exec,
362
363
const commandForExec = alias => `${ commandPrefix && ! commandPrefixNotNeeded ? commandPrefix + ' ' : '' } ${ alias } `
363
364
364
365
row . className = 'log-line entity'
0 commit comments