Skip to content

Commit

Permalink
docs: extend documentation in -h
Browse files Browse the repository at this point in the history
  • Loading branch information
kantord committed Mar 8, 2019
1 parent d9d118c commit 87c08be
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -21,6 +21,13 @@ OPTIONS
-s, --script-file=script-file read script from file
-u, --ugly don't prettify output
-v, --version show CLI version

DESCRIPTION
Example:

cat input.json | emuto '$.characters | map ($ => $ { name gender})'

The shebang for emuto is #! emuto -s
</pre>

# Setup
Expand Down
8 changes: 7 additions & 1 deletion src/emuto.js
Expand Up @@ -28,7 +28,13 @@ const createEmutoCliCommand = ({getStdin, fs}) => {

EmutoCliCommand.args = [{name: 'filter', required: false}]

EmutoCliCommand.description = 'process JSON files'
EmutoCliCommand.description = `process JSON files
Example:
cat input.json | emuto '$.characters | map ($ => $ { name gender})'
The shebang for emuto is #! emuto -s`

EmutoCliCommand.flags = {
version: flags.version({char: 'v'}),
Expand Down

0 comments on commit 87c08be

Please sign in to comment.