This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade command-line-usage from 6.1.0 to 6.1.3.
![merge advice](https://app.snyk.io/badges/merge-advice/?package_manager=npm&package_name=command-line-usage&from_version=6.1.0&to_version=6.1.3&pr_id=c3ec1319-b232-4301-af38-d5ddcd15232e&visibility=true&has_feature_flag=false)
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
- The recommended version is **3 versions** ahead of your current version.
- The recommended version was released **4 months ago**, on 2022-04-13.
Release notes Package name: command-line-usage
In the list of option definitions passed to an optionList, the name property is no longer mandatory. Previously, the following example would have thrown validation errors due to the lack of name properties.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade command-line-usage from 6.1.0 to 6.1.3.
![merge advice](https://app.snyk.io/badges/merge-advice/?package_manager=npm&package_name=command-line-usage&from_version=6.1.0&to_version=6.1.3&pr_id=c3ec1319-b232-4301-af38-d5ddcd15232e&visibility=true&has_feature_flag=false) :information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.- The recommended version is **3 versions** ahead of your current version. - The recommended version was released **4 months ago**, on 2022-04-13.
Release notes
Package name: command-line-usage
6.1.3
In the list of option definitions passed to an
optionList
, thename
property is no longer mandatory. Previously, the following example would have thrown validation errors due to the lack ofname
properties.<div class="highlight highlight-source-js notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const commandLineUsage = require('command-line-usage')
const usage = commandLineUsage([ { header: 'Options', optionList: [ { description: 'Display this usage guide.', alias: 'h', type: Boolean }, { description: 'Timeout value in ms.', alias: 't', type: Number, typeLabel: '{underline ms}' } ] } ])
console.log(usage)">
Now, it returns the following output.
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Options
-h Display this usage guide. -t ms Timeout value in ms. ">