Skip to content

Commit

Permalink
Merge pull request #64 from UpCloudLtd/fix/ip-address-assign-flag-des…
Browse files Browse the repository at this point in the history
…cription

fix(docs): fix mac and zone flag descriptions for ip-address assign
  • Loading branch information
ka-myl authored Apr 20, 2021
2 parents b57e9ab + 5830a57 commit 10b2c59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/commands/ipaddress/assign.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package ipaddress

import (
"fmt"

"github.com/UpCloudLtd/upcloud-cli/internal/commands"
"github.com/UpCloudLtd/upcloud-cli/internal/output"
"github.com/UpCloudLtd/upcloud-cli/internal/ui"
Expand Down Expand Up @@ -41,8 +42,8 @@ func (s *assignCommand) InitCommand() {
fs.StringVar(&s.access, "access", defaultAccess, "Is address for utility or public network.")
fs.StringVar(&s.family, "family", defaultFamily, "The address family of new IP address.")
fs.StringVar(&s.serverUUID, "server", "", "The server the ip address is assigned to.")
fs.StringVar(&s.mac, "mac", "", "MAC address of server interface to assign address to. Required for non-floating addresses.")
fs.StringVar(&s.zone, "zone", "", "Zone of address, required when assigning a detached floating IP address.")
fs.StringVar(&s.mac, "mac", "", "MAC address of server interface to assign address to. Required for detached floating IP address if zone is not specified.")
fs.StringVar(&s.zone, "zone", "", "Zone of address. Required for detached floating IP address if MAC address is not speficied.")
fs.BoolVar(&s.floating, "floating", false, "Whether the address to be assigned is a floating one.")
s.AddFlags(fs)
}
Expand Down

0 comments on commit 10b2c59

Please sign in to comment.