Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type-safe command-line verifier #712

Open
silky opened this issue Oct 10, 2024 · 1 comment
Open

type-safe command-line verifier #712

silky opened this issue Oct 10, 2024 · 1 comment

Comments

@silky
Copy link
Owner

silky commented Oct 10, 2024

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:

  • arg-parsing libraries could offer this as extra functionality: program -a a -b b -b b -c "hello" --verify would output it's interpretation; a bit like --dry-run for some programs
  • some external tool that would just look at --help and do a best-guess to see if you got it right
  • ???
@dcousens
Copy link

dcousens commented Oct 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants