Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to yargs 15.4.1 for coercive reasons #278

Merged
merged 4 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Added `appConfig` to `lando` for more powerful tasks
* Added `primary` to `appConfig` for more powerful tasks
* Added `otable` to `formatData`
* Updated to `yargs@13.3.0` for better `--` handling
* Updated to `yargs@15.4.1` for better `--` handling

## v3.21.2 - [June 20, 2024](https://github.com/lando/cli/releases/tag/v3.21.2)

Expand Down
5 changes: 4 additions & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,10 @@ module.exports = class Cli {
}

// examples are also good!
for (const example of examples) yargs.example(...example);
for (const example of examples) {
if (typeof example === 'string') yargs.example(example);
else yargs.example(...example);
}

// and also allow usage
if (usage) yargs.usage(`${this.chalk.green('Usage:')}\n ${usage}`);
Expand Down
Loading
Loading