silky / ideas

:bulb: various ideas
https://github.com/silky/ideas/issues
MIT License
20 stars 2 forks source link

type-safe command-line verifier #712

Open silky opened 1 month ago

silky commented 1 month ago

sometimes you want to run a command-line program and you send it args

oftentimes, you get those args wrong and the program does the wrong thing, or crashes

it'd be great if there was a way to verify the args, before you run it

some options:

dcousens commented 1 month ago

like @types/ packages in TypeScript, except for binary arguments