open-index/open-npm huggingface dataset:
npm package: @otox/cli-helper
Description: process.argv parser
Latest version: 0.0.7

# @otox/cli-helper

process.argv parser

## usage

```js
#!/usr/bin/env node

const helper = require("@otox/cli-helper");

helper.parse(process.argv);
// => { command: 'foo', params: ['bar'], options: { help: true, h: true } }

helper.parseWithOptions(process.argv, { help: "h" });
// => { command: 'foo', params: ['bar'], options: { help: true } }
```

```bash
$ node index.js foo bar --help -h
```