Skip to content

Commit c4f1c05

Browse files
committed
Show valid values for --auth in --help
See https://github.com/nhooyr/code-server/pull/1/files#r485847134
1 parent 4b3c089 commit c4f1c05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node/cli.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ export const optionDescriptions = (): string[] => {
192192
}
193193
return " ".repeat(widths.long + widths.short + 6) + line
194194
})
195-
.join("\n")
195+
.join("\n") +
196+
(typeof v.type === "object" ? ` [${Object.values(v.type).join(", ")}]` : "")
196197
)
197198
})
198199
}

0 commit comments

Comments
 (0)