This package lets you parse command line arguments inside CLIs. It's a fork of minimist (which is unmaintained and bigger on disk - in turn, @leo decided to create his own fork).
First, install it:
Setting up and maintaining a test framework can sometimes be complex and time consuming. I've created xv to be a low maintainance, easy to setup and learn test lib/CLI. Great for small and medium projects.