Skip to content

Commit

Permalink
corrected example and improved wording
Browse files Browse the repository at this point in the history
  • Loading branch information
nephh committed Jan 11, 2024
1 parent 9edd75c commit 61ed7f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/advanced.md
Expand Up @@ -620,7 +620,7 @@ console.info('finish')

### Using Inquirer to make interactive tools

Using Inquirer together with yargs is a powerful way to make your CLI tools more interactive and responsive to the user.
Using Inquirer or a similar package with yargs is a powerful way to make your CLI tools more interactive and responsive to the user.

One example would be to use `input` to ensure the user inputs required arguments.

Expand Down Expand Up @@ -655,7 +655,8 @@ If username is not given as an argument, inquirer will prompt the user with an i

```
$ ./app.js login
? Please enter your username:
? Please enter your username: yargs
Welcome back, yargs!
$ ./app.js login yargs
Welcome back, yargs!
Expand Down

0 comments on commit 61ed7f8

Please sign in to comment.