Skip to content

Commit

Permalink
Fixed formating for cli --help message (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyaboka authored Dec 2, 2023
1 parent 56e8ef9 commit 1a56af6
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions bin/nanoid.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,20 @@ function error(msg) {
}

if (process.argv.includes('--help') || process.argv.includes('-h')) {
print(`
Usage
$ nanoid [options]
print(`Usage
$ nanoid [options]
Options
-s, --size Generated ID size
-a, --alphabet Alphabet to use
-h, --help Show this help
Options
-s, --size Generated ID size
-a, --alphabet Alphabet to use
-h, --help Show this help
Examples
$ nanoid -s 15
S9sBF77U6sDB8Yg
Examples
$ nanoid -s 15
S9sBF77U6sDB8Yg
$ nanoid --size 10 --alphabet abc
bcabababca`)
$ nanoid --size 10 --alphabet abc
bcabababca`)
process.exit()
}

Expand Down

0 comments on commit 1a56af6

Please sign in to comment.