Skip to content

Commit a321ee0

Browse files
committed
fix the shortcut or to be one pipe
1 parent 00d55a8 commit a321ee0

File tree

2 files changed

+83
-83
lines changed

2 files changed

+83
-83
lines changed

lib/base-cmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class BaseCommand {
102102
for (const def of cmdDefs) {
103103
if (def.description) {
104104
const desc = def.description.trim().split('\n')[0]
105-
const shortcuts = def.short ? `-${def.short}|` : ''
105+
const shortcuts = def.short ? `-${def.short}` : ''
106106
const aliases = (def.alias || []).map(v => `--${v}`).join('|')
107107
const mainFlag = `--${def.key}`
108108
const flagName = [shortcuts, mainFlag, aliases].filter(Boolean).join('|')

0 commit comments

Comments
 (0)