yargs/yargs

Key could be false boolean, or a string

Open

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

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (10,829 star) (1,053 fork)batch import
Help Wantedquestion

描述

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!

贡献者指南