update personal shopper subject: precise handling of case when no keyword is passed

This commit is contained in:
Louise Foussat 2021-03-22 11:15:46 +00:00 committed by Clément
parent 2012de92dd
commit 5b05e6bbb6
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ Create a `personal-shopper.mjs` script that:
- If the list is empty, this message should appear in console: - If the list is empty, this message should appear in console:
`Empty list.`. `Empty list.`.
If no keyword is passed as second argument, the helper should be printed in the console.
#### Examples #### Examples
- `node personal-shopper.mjs shopping-list.json create` would create the file - `node personal-shopper.mjs shopping-list.json create` would create the file