diff --git a/src/help/docopts.ts b/src/help/docopts.ts index 253b4afea..9e25ef8ca 100644 --- a/src/help/docopts.ts +++ b/src/help/docopts.ts @@ -80,7 +80,7 @@ export class DocOpts { } public toString(): string { - const opts = ['<%= command.id %>'] + const opts = this.cmd.id === '.' || this.cmd.id === '' ? [] : ['<%= command.id %>'] if (this.cmd.args) { const a = this.cmd.args?.map(arg => `[${arg.name.toUpperCase()}]`) || [] opts.push(...a)