257
let keyWithDesc = key;
258
if (this.zshShell) {
260
>
const aliasKey = this?.aliases?.[key]?.find(alias => {
261
const desc = descs[alias];
262
return typeof desc === 'string' && desc.length > 0;
264
>
const descFromAlias = aliasKey ? descs[aliasKey] : undefined;
265
>
const desc = descs[key] ?? descFromAlias ?? '';
266
>
keyWithDesc = `${key.replace(/:/g, '\\:')}:${desc
267
>
.replace('__yargsString__:', '')
268
>
.replace(/(\r\n|\n|\r)/gm, ' ')}`;
269
>
}
270
271
const startsByTwoDashes = (s: string) => /^--/.test(s);