Skip to Content
Nextra 4.0 is released 🎉
💡

Call init once to validate the option definitions. After that, you can play with your options. (Word completion will be available as well.)


Terminal emulation has limited capabilities. Copy, paste, history, colorization, and completion all work, but not as seamlessly as in a real shell. For a smoother experience, you may want to try the demo locally:

npm i -g tsargp && complete -C tsargp tsargp

Things to try out

Validation errors

  • check if an error is reported for duplicate option names
  • check if an error is reported for duplicate enumerated values
  • check if an error is reported for duplicate positional options

Validation warnings

  • check if a warning is reported for option names too similar to each other (e.g. -help1 and -help2)
  • check if a warning is reported for option names with mixed naming conventions (e.g. -h and --b)
  • check if a warning is reported for a variadic option with cluster letters
Last updated on