yargs/yargs

Key could be false boolean, or a string

开放

#1,599 创建于 2020年3月24日

 (1 条评论) (0 个反应) (0 位负责人)JavaScript (1,053 个派生)batch import
Help Wantedquestion

仓库指标

星标
 (10,829 个星标)
PR 合并指标
 (平均合并 113天 19小时) (30 天内合并 11 个 PR)

描述

Hello,

Is there a way to allow a key to be a boolean or a string? For example, I'd allow '--no-attribute' which would give attribute a false boolean, as well as '--attribute inline' which would give attribute the value of 'inline'?

Thanks!

贡献者指南