January 2018
Beginner
658 pages
13h 10m
English
On the next line, I'll call .command again, passing in the command name. Let's do the list command first because this one is really easy, no arguments are required. Then we'll pass in the description for the list command, List all notes, as shown here:
.command('list', 'List all notes').help().argv;
Next up, we'll call command again. This time we'll do the command for read. The read command reads an individual note, so for the description for the read command, we'll use something like Read a note:
.command('list', 'List all notes').command('read', 'Read a note').help().argv;
Now the read command does require the title argument. That means we are going to need to provide that options object. I'll ...