Skip to content

danretegan/node-hw-01-cli-application

Repository files navigation

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

  • 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