From 61ed7f865fc1cc2323109a817c8c91db37f7526b Mon Sep 17 00:00:00 2001 From: Owen McCormick Date: Thu, 11 Jan 2024 00:05:27 -0500 Subject: [PATCH] corrected example and improved wording --- docs/advanced.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/advanced.md b/docs/advanced.md index 6a20f0f86..72e3fac2d 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -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. @@ -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!