Skip to content

Commit 13696d4

Browse files
committed
- Fix config.port and config.bind
1 parent 037e576 commit 13696d4

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

lib/madness/commands/server.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ class Server < Base
66
usage 'madness server [PATH] [options]'
77
usage 'madness init (-h|--help)'
88

9-
param 'PATH', 'Path to the markdown directory [default: .]'
9+
param 'PATH', 'Path to the markdown directory (default: .)'
1010

11-
option '-p --port NUMBER', 'Set server port number [default: 3000]'
12-
option '-b --bind ADDRESS', 'Set server listen address [default: 0.0.0.0]'
11+
option '-p --port NUMBER', 'Set server port number (default: 3000)'
12+
option '-b --bind ADDRESS', 'Set server listen address (default: 0.0.0.0)'
1313
option '-o --open', 'Open a web browser after launching'
1414
option '--auth USER:PASS', 'Enable basic authentication'
15-
option '--auth-zone NAME', 'The basic authentication prompt title [default: Restricted Documentation]'
15+
option '--auth-zone NAME', 'The basic authentication prompt title (default: Restricted Documentation)'
1616
option '--theme FOLDER', 'Use a custom theme (either absolute or relative to the main documentation path)'
1717

1818
example 'madness server'

spec/approvals/cli/server/help

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Usage:
66

77
Options:
88
-p --port NUMBER
9-
Set server port number [default: 3000]
9+
Set server port number (default: 3000)
1010

1111
-b --bind ADDRESS
12-
Set server listen address [default: 0.0.0.0]
12+
Set server listen address (default: 0.0.0.0)
1313

1414
-o --open
1515
Open a web browser after launching
@@ -18,7 +18,7 @@ Options:
1818
Enable basic authentication
1919

2020
--auth-zone NAME
21-
The basic authentication prompt title [default: Restricted Documentation]
21+
The basic authentication prompt title (default: Restricted Documentation)
2222

2323
--theme FOLDER
2424
Use a custom theme (either absolute or relative to the main documentation
@@ -29,7 +29,7 @@ Options:
2929

3030
Parameters:
3131
PATH
32-
Path to the markdown directory [default: .]
32+
Path to the markdown directory (default: .)
3333

3434
Examples:
3535
madness server
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
▌ generating Table of Contents
22
▌ starting server
33
▌ env : production
4-
▌ listen : 0.0.0.0:3000
4+
▌ listen : 4.3.2.1:1337
55
▌ path : ...docs
66
▌ config : .madness.yml
77

0 commit comments

Comments
 (0)