From 560c21629ef2c4343355c58f19b2ee87b4227ed4 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 15 Dec 2020 17:21:57 +0200 Subject: [PATCH] vdoc: fix `-p PORT` option --- cmd/tools/vdoc.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/tools/vdoc.v b/cmd/tools/vdoc.v index b6f897de56..6e639acc0b 100644 --- a/cmd/tools/vdoc.v +++ b/cmd/tools/vdoc.v @@ -972,7 +972,7 @@ fn main() { i++ } '-p' { - s_port := cmdline.option(current_args, '-o', '') + s_port := cmdline.option(current_args, '-p', '') s_port_int := s_port.int() if s_port.len == 0 { eprintln('vdoc: No port number specified on "-p".') @@ -983,6 +983,7 @@ fn main() { exit(1) } cfg.server_port = s_port_int + i++ } '-s' { cfg.inline_assets = true