An open API service indexing awesome lists of open source software.

https://github.com/danretegan/node-hw-01-cli-application

CLI application /Yargs
https://github.com/danretegan/node-hw-01-cli-application

cli cli-app node nodejs yargs

Last synced: 3 months ago
JSON representation

CLI application /Yargs

Awesome Lists containing this project

README

          

# Command Line Interface (CLI) application

## Yargs

- start:
`npm run start`


start

### Actions:

- list:
`node index.js list`


list

- get element by id:
`node index.js get id`


get

- add:
`node index.js add "Mango Two" mango@gmail.com 322-22-22`


add

- remove:
`node index.js remove id`


remove

### Errors:

- wrong action:


wrong action

- wrong path:


wrong path

- Unknown argument:


Unknown argument

- Not enough non-option arguments: got 2, need at least 3:


Not enough non-option arguments: got 2, need at least 3

### Help:

`node index.js help`


Help