Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
75lb committed May 28, 2016
1 parent baf6ce6 commit 64c298f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -12,6 +12,8 @@ A usage guide is built from an arbitrary number of sections, e.g. a description

The `commandLineUsage()` function takes one or more `section` objects as input. Each section comprises an optional `header` property and one of either `content` or `optionList`.

Inline ansi formatting can be used anywhere within the usage template using the formatting syntax described [here](https://github.com/75lb/ansi-escape-sequences#module_ansi-escape-sequences.format).

```js
const getUsage = require('command-line-usage')

Expand All @@ -37,7 +39,7 @@ const usage = getUsage(sections)
console.log(usage)
```

Inline ansi formatting can be used anywhere within the usage template using the formatting syntax described [here](https://github.com/75lb/ansi-escape-sequences#module_ansi-escape-sequences.format).
![usage](https://raw.githubusercontent.com/75lb/command-line-usage/next/example/screens/simple.png)

## Examples

Expand Down
Binary file removed example/screens/custom.png
Binary file not shown.
Binary file added example/screens/synopsis.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion jsdoc2md/README.hbs
Expand Up @@ -12,6 +12,8 @@ A usage guide is built from an arbitrary number of sections, e.g. a description

The `commandLineUsage()` function takes one or more `section` objects as input. Each section comprises an optional `header` property and one of either `content` or `optionList`.

Inline ansi formatting can be used anywhere within the usage template using the formatting syntax described [here](https://github.com/75lb/ansi-escape-sequences#module_ansi-escape-sequences.format).

```js
const getUsage = require('command-line-usage')

Expand All @@ -37,7 +39,7 @@ const usage = getUsage(sections)
console.log(usage)
```

Inline ansi formatting can be used anywhere within the usage template using the formatting syntax described [here](https://github.com/75lb/ansi-escape-sequences#module_ansi-escape-sequences.format).
![usage](https://raw.githubusercontent.com/75lb/command-line-usage/next/example/screens/simple.png)

## Examples

Expand Down

0 comments on commit 64c298f

Please sign in to comment.