From c9a4de78e14287f38ea0da10ff0675fd55352733 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 29 Oct 2024 17:06:39 +0100 Subject: [PATCH] add flags. --- cmd/private_network_create.go | 6 +++--- cmd/private_network_update.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/private_network_create.go b/cmd/private_network_create.go index eef140ec..c7ce6b47 100644 --- a/cmd/private_network_create.go +++ b/cmd/private_network_create.go @@ -25,9 +25,9 @@ type privateNetworkCreateCmd struct { StartIP string `cli-usage:"Private Network range start IP address"` Zone v3.ZoneName `cli-short:"z" cli-usage:"Private Network zone"` Netmask string `cli-usage:"DHCP option 1: Subnet netmask"` - DNSServers []string `cli-usage:"DHCP option 6: DNS servers"` - NTPServers []string `cli-usage:"DHCP option 42: NTP servers"` - Routers []string `cli-usage:"DHCP option 3: Routers"` + DNSServers []string `cli-flag:"dns-server" cli-usage:"DHCP option 6: DNS servers"` + NTPServers []string `cli-flag:"ntp-server" cli-usage:"DHCP option 42: NTP servers"` + Routers []string `cli-flag:"router" cli-usage:"DHCP option 3: Routers"` DomainSearch []string `cli-usage:"DHCP option 119: domain search list (limited to 255 octets)"` } diff --git a/cmd/private_network_update.go b/cmd/private_network_update.go index 89983928..1d680bd9 100644 --- a/cmd/private_network_update.go +++ b/cmd/private_network_update.go @@ -25,9 +25,9 @@ type privateNetworkUpdateCmd struct { StartIP string `cli-usage:"Private Network range start IP address"` Zone v3.ZoneName `cli-short:"z" cli-usage:"Private Network zone"` Netmask string `cli-usage:"DHCP option 1: Subnet netmask"` - DNSServers []string `cli-usage:"DHCP option 6: DNS servers"` - NTPServers []string `cli-usage:"DHCP option 42: NTP servers"` - Routers []string `cli-usage:"DHCP option 3: Routers"` + DNSServers []string `cli-flag:"dns-server" cli-usage:"DHCP option 6: DNS servers"` + NTPServers []string `cli-flag:"ntp-server" cli-usage:"DHCP option 42: NTP servers"` + Routers []string `cli-flag:"router" cli-usage:"DHCP option 3: Routers"` DomainSearch []string `cli-usage:"DHCP option 119: domain search list (limited to 255 octets)"` }