mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vdoc: fix -p PORT
option
This commit is contained in:
@ -972,7 +972,7 @@ fn main() {
|
|||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
'-p' {
|
'-p' {
|
||||||
s_port := cmdline.option(current_args, '-o', '')
|
s_port := cmdline.option(current_args, '-p', '')
|
||||||
s_port_int := s_port.int()
|
s_port_int := s_port.int()
|
||||||
if s_port.len == 0 {
|
if s_port.len == 0 {
|
||||||
eprintln('vdoc: No port number specified on "-p".')
|
eprintln('vdoc: No port number specified on "-p".')
|
||||||
@ -983,6 +983,7 @@ fn main() {
|
|||||||
exit(1)
|
exit(1)
|
||||||
}
|
}
|
||||||
cfg.server_port = s_port_int
|
cfg.server_port = s_port_int
|
||||||
|
i++
|
||||||
}
|
}
|
||||||
'-s' {
|
'-s' {
|
||||||
cfg.inline_assets = true
|
cfg.inline_assets = true
|
||||||
|
Reference in New Issue
Block a user