aspiers/linear-tools

Do option validation

開放

#6 建立於 2022年11月21日

 (0 則留言) (0 個反應) (0 位負責人)TypeScript (2 個分叉)github user discovery
bughelp wanted

倉庫指標

星標
 (6 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Currently gluegun doesn't do any option validation so you can invoke with --any-random-option and it won't complain. Also it only works with options coming after the positional arguments, which is highly unconventional and unfriendly.

gluegun uses yargs under the hood but I can't figure out how to fix this. Based on a quick look at the gluegun source I think it's a fundamental limitation of gluegun. TBH I'm tempted to scrap gluegun because it doesn't seem to add much value to this project.

貢獻者指南