Skip to content

Commit

Permalink
GitHub Issue #53 - improve CLI help output (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
oakmac authored Oct 19, 2024
1 parent 6d6d85b commit 4a90d67
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,18 @@ yargs(hideBin(process.argv))
.demandCommand() // show them --help if they do not pass a valid command
.version(programVersion)

.example([
['$0 list src/', 'List files that will be formatted in the src/ directory (recursive)'],
['$0 check src/', 'Check if files are already formatted in src/'],
['$0 fix src/', 'Format all files in src/'],
['$0 fix -', 'Reads from stdin, prints a formatted file to stdout']
])

.describe('l', 'Set the logging level: "everything", "ignore-already-formatted", "quiet"')

.epilogue('For more information, see the README at https://github.com/oakmac/standard-clojure-style-js')

.wrap(100)
.help()
.parse()

Expand Down

0 comments on commit 4a90d67

Please sign in to comment.