Skip to content

Commit cb762e1

Browse files
committed
Added aliases
1 parent 4f51002 commit cb762e1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

cli.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ if (require.main === module) {
7777
string: ['log-level'],
7878
alias: {
7979
port: 'p',
80-
help: 'h'
80+
help: 'h',
81+
'log-level': 'l',
82+
'pretty-logs': 'P'
8183
},
8284
default: {
8385
port: 3000,

help.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ Usage: fastify [opts] <file>
22
-p, --port
33
Port to listen on (default to 3000)
44

5-
--log-level
5+
-l, --log-level
66
Log level (default to fatal)
77

8-
--pretty-logs
8+
-P, --pretty-logs
99
Prints pretty logs
1010

1111
-h, --help

0 commit comments

Comments
 (0)