Socket
Socket
Sign inDemoInstall

command-line-usage

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

command-line-usage - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0-0

9

lib/option-list.js

@@ -50,3 +50,2 @@ 'use strict'

function getOptionNames (definition, optionNameStyles) {
const names = []
let type = definition.type

@@ -63,7 +62,9 @@ ? definition.type.name.toLowerCase()

let result = ''
if (definition.alias) {
names.push(ansi.format('-' + definition.alias, optionNameStyles))
result = `${ansi.format(`--${definition.name}`, optionNameStyles)}, ${ansi.format('-' + definition.alias, optionNameStyles)} ${type}`
} else {
result = `${ansi.format(`--${definition.name}`, optionNameStyles)} ${type}`
}
names.push(ansi.format(`--${definition.name}`, optionNameStyles) + ' ' + type)
return names.join(', ')
return result
}

@@ -70,0 +71,0 @@

{
"name": "command-line-usage",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "4.0.0",
"version": "4.1.0-0",
"description": "Generates command-line usage information",

@@ -27,10 +27,10 @@ "repository": "https://github.com/75lb/command-line-usage.git",

"ansi-escape-sequences": "^3.0.0",
"array-back": "^1.0.4",
"array-back": "^2.0.0",
"table-layout": "^0.4.0",
"typical": "^2.6.0"
"typical": "^2.6.1"
},
"devDependencies": {
"jsdoc-to-markdown": "^2.0.1",
"test-runner": "^0.3.0"
"jsdoc-to-markdown": "^3.0.0",
"test-runner": "^0.4.0"
}
}

@@ -10,3 +10,3 @@ [![view on npm](http://img.shields.io/npm/v/command-line-usage.svg)](https://www.npmjs.org/package/command-line-usage)

## Synopis
## Synopsis
A usage guide is created by first defining an arbitrary number of sections, e.g. a description section, synopsis, option list, examples, footer etc. Each section has an optional header and some content. Each section must be of type <code><a href="#commandlineusagecontent">content</a></code> or <code><a href="#commandlineusageoptionlist">optionList</a></code>.

@@ -127,3 +127,3 @@

**Kind**: inner typedef of <code>[commandLineUsage](#exp_module_command-line-usage--commandLineUsage)</code>
**Kind**: inner typedef of [<code>commandLineUsage</code>](#exp_module_command-line-usage--commandLineUsage)
**Properties**

@@ -207,3 +207,3 @@

**Kind**: inner typedef of <code>[commandLineUsage](#exp_module_command-line-usage--commandLineUsage)</code>
**Kind**: inner typedef of [<code>commandLineUsage</code>](#exp_module_command-line-usage--commandLineUsage)
**Properties**

@@ -259,2 +259,2 @@

&copy; 2015-16 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown).
&copy; 2015-17 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc