From 1565e43365c67388a3937ea437f19de068bb988f Mon Sep 17 00:00:00 2001 From: Andy Zhou Date: Sat, 1 Jun 2019 15:19:41 -0700 Subject: [PATCH] Modify --api-port to take a stirng argument --api-port only takes the port as argument. This patch modifies it to take a string argument, in the form of host:port. --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 64ebe3d0..e706c2c7 100644 --- a/main.go +++ b/main.go @@ -96,11 +96,11 @@ func main() { Name: "version", Usage: "Choose the k3s image version", }, - cli.IntFlag{ + cli.StringFlag{ // TODO: only --api-port, -a soon since we want to use --port, -p for the --publish/--add-port functionality Name: "api-port, a, port, p", - Value: 6443, - Usage: "Map the Kubernetes ApiServer port to a local port (Note: --port/-p will be used for arbitrary port mapping as of v2.0.0, use --api-port/-a instead for setting the api port)", + Value: "6443", + Usage: "Specify the Kubernetes cluster API server port (Format: `[host:]port` (Note: --port/-p will be used for arbitrary port mapping as of v2.0.0, use --api-port/-a instead for setting the api port)", }, cli.IntFlag{ Name: "timeout, t",