Skip to content

Commit 5378580

Browse files
committed
fixes
1 parent a534ce4 commit 5378580

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+100
-92
lines changed

internal/cmd/all/all.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func NewCommand(s state.State) *cobra.Command {
1111
cmd := &cobra.Command{
1212
Use: "all",
1313
Short: "Commands that apply to all resources",
14-
Args: util.Validate,
14+
Args: util.ValidateExact,
1515
TraverseChildren: true,
1616
DisableFlagsInUseLine: true,
1717
}

internal/cmd/base/delete.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (dc *DeleteCmd) CobraCommand(s state.State) *cobra.Command {
3434
cmd := &cobra.Command{
3535
Use: fmt.Sprintf("delete %s<%s>", opts, strings.ToLower(dc.ResourceNameSingular)),
3636
Short: dc.ShortDescription,
37-
Args: util.Validate,
37+
Args: util.ValidateExact,
3838
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(dc.NameSuggestions(s.Client()))),
3939
TraverseChildren: true,
4040
DisableFlagsInUseLine: true,

internal/cmd/base/describe.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (dc *DescribeCmd) CobraCommand(s state.State) *cobra.Command {
3535
cmd := &cobra.Command{
3636
Use: fmt.Sprintf("describe [options] <%s>", strings.ToLower(dc.ResourceNameSingular)),
3737
Short: dc.ShortDescription,
38-
Args: util.Validate,
38+
Args: util.ValidateExact,
3939
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(dc.NameSuggestions(s.Client()))),
4040
TraverseChildren: true,
4141
DisableFlagsInUseLine: true,

internal/cmd/base/set_rdns.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (rc *SetRdnsCmd) CobraCommand(s state.State) *cobra.Command {
3030
cmd := &cobra.Command{
3131
Use: fmt.Sprintf("set-rdns [options] <%s> --hostname <hostname>", strings.ToLower(rc.ResourceNameSingular)),
3232
Short: rc.ShortDescription,
33-
Args: util.Validate,
33+
Args: util.ValidateExact,
3434
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(rc.NameSuggestions(s.Client()))),
3535
TraverseChildren: true,
3636
DisableFlagsInUseLine: true,

internal/cmd/base/update.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (uc *UpdateCmd) CobraCommand(s state.State) *cobra.Command {
3030
cmd := &cobra.Command{
3131
Use: fmt.Sprintf("update [options] <%s>", strings.ToLower(uc.ResourceNameSingular)),
3232
Short: uc.ShortDescription,
33-
Args: util.Validate,
33+
Args: util.ValidateExact,
3434
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(uc.NameSuggestions(s.Client()))),
3535
TraverseChildren: true,
3636
DisableFlagsInUseLine: true,

internal/cmd/certificate/certificate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func NewCommand(s state.State) *cobra.Command {
1111
cmd := &cobra.Command{
1212
Use: "certificate",
1313
Short: "Manage certificates",
14-
Args: util.Validate,
14+
Args: util.ValidateExact,
1515
TraverseChildren: true,
1616
DisableFlagsInUseLine: true,
1717
}

internal/cmd/certificate/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var CreateCmd = base.CreateCmd{
1919
cmd := &cobra.Command{
2020
Use: "create [options] --name <name> (--type managed | --type uploaded --cert-file <file> --key-file <file>)",
2121
Short: "Create or upload a Certificate",
22-
Args: util.Validate,
22+
Args: util.ValidateExact,
2323
}
2424

2525
cmd.Flags().String("name", "", "Certificate name (required)")

internal/cmd/completion/completion.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ and source this file from your PowerShell profile.
9595
9696
PS> hcloud completion powershell > hcloud.ps1
9797
`,
98-
Args: util.Validate,
98+
Args: util.ValidateExact,
9999
ValidArgs: []string{"bash", "fish", "zsh", "powershell"},
100100
DisableFlagsInUseLine: true,
101101
RunE: func(cmd *cobra.Command, args []string) error {

internal/cmd/context/active.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func newActiveCommand(s state.State) *cobra.Command {
1414
cmd := &cobra.Command{
1515
Use: "active",
1616
Short: "Show active context",
17-
Args: util.Validate,
17+
Args: util.ValidateExact,
1818
TraverseChildren: true,
1919
DisableFlagsInUseLine: true,
2020
RunE: state.Wrap(s, runActive),

internal/cmd/context/context.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func NewCommand(s state.State) *cobra.Command {
1111
cmd := &cobra.Command{
1212
Use: "context",
1313
Short: "Manage contexts",
14-
Args: util.Validate,
14+
Args: util.ValidateExact,
1515
TraverseChildren: true,
1616
DisableFlagsInUseLine: true,
1717
}

internal/cmd/context/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func newCreateCommand(s state.State) *cobra.Command {
2020
cmd := &cobra.Command{
2121
Use: "create <name>",
2222
Short: "Create a new context",
23-
Args: util.Validate,
23+
Args: util.ValidateExact,
2424
TraverseChildren: true,
2525
DisableFlagsInUseLine: true,
2626
RunE: state.Wrap(s, runCreate),

internal/cmd/context/delete.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func newDeleteCommand(s state.State) *cobra.Command {
1616
cmd := &cobra.Command{
1717
Use: "delete <context>",
1818
Short: "Delete a context",
19-
Args: util.Validate,
19+
Args: util.ValidateExact,
2020
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidates(config.ContextNames(s.Config())...)),
2121
TraverseChildren: true,
2222
DisableFlagsInUseLine: true,

internal/cmd/context/list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func newListCommand(s state.State) *cobra.Command {
3030
"Displays a list of contexts.",
3131
listTableOutput.Columns(),
3232
),
33-
Args: util.Validate,
33+
Args: util.ValidateExact,
3434
TraverseChildren: true,
3535
DisableFlagsInUseLine: true,
3636
RunE: state.Wrap(s, runList),

internal/cmd/context/use.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func newUseCommand(s state.State) *cobra.Command {
1616
cmd := &cobra.Command{
1717
Use: "use <context>",
1818
Short: "Use a context",
19-
Args: util.Validate,
19+
Args: util.ValidateExact,
2020
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidates(config.ContextNames(s.Config())...)),
2121
TraverseChildren: true,
2222
DisableFlagsInUseLine: true,

internal/cmd/datacenter/datacenter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func NewCommand(s state.State) *cobra.Command {
1111
cmd := &cobra.Command{
1212
Use: "datacenter",
1313
Short: "Manage datacenters",
14-
Args: util.Validate,
14+
Args: util.ValidateExact,
1515
TraverseChildren: true,
1616
DisableFlagsInUseLine: true,
1717
}

internal/cmd/firewall/add_rule.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var AddRuleCmd = base.Cmd{
1919
cmd := &cobra.Command{
2020
Use: "add-rule [options] <firewall> (--direction in --source-ips <ips> | --direction out --destination-ips <ips>) --protocol <icmp|udp|tcp|esp|gre>",
2121
Short: "Add a single rule to a firewall",
22-
Args: util.Validate,
22+
Args: util.ValidateExact,
2323
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.Firewall().Names)),
2424
TraverseChildren: true,
2525
DisableFlagsInUseLine: true,

internal/cmd/firewall/apply_to_resource.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var ApplyToResourceCmd = base.Cmd{
1818
cmd := &cobra.Command{
1919
Use: "apply-to-resource <firewall> (--type server --server <server> | --type label_selector --label-selector <label-selector>)",
2020
Short: "Applies a Firewall to a single resource",
21-
Args: util.Validate,
21+
Args: util.ValidateExact,
2222
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.Firewall().Names)),
2323
TraverseChildren: true,
2424
DisableFlagsInUseLine: true,

internal/cmd/firewall/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var CreateCmd = base.CreateCmd{
2222
cmd := &cobra.Command{
2323
Use: "create [options] --name <name>",
2424
Short: "Create a Firewall",
25-
Args: util.Validate,
25+
Args: util.ValidateExact,
2626
}
2727
cmd.Flags().String("name", "", "Name")
2828
cmd.MarkFlagRequired("name")

internal/cmd/firewall/delete_rule.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var DeleteRuleCmd = base.Cmd{
2020
cmd := &cobra.Command{
2121
Use: "delete-rule [options] <firewall> (--direction in --source-ips <ips> | --direction out --destination-ips <ips>) --protocol <icmp|esp|gre|udp|tcp>",
2222
Short: "Delete a single rule to a firewall",
23-
Args: util.Validate,
23+
Args: util.ValidateExact,
2424
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.Firewall().Names)),
2525
TraverseChildren: true,
2626
DisableFlagsInUseLine: true,

internal/cmd/firewall/firewall.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func NewCommand(s state.State) *cobra.Command {
1111
cmd := &cobra.Command{
1212
Use: "firewall",
1313
Short: "Manage Firewalls",
14-
Args: util.Validate,
14+
Args: util.ValidateExact,
1515
TraverseChildren: true,
1616
DisableFlagsInUseLine: true,
1717
}

internal/cmd/firewall/remove_from_resource.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var RemoveFromResourceCmd = base.Cmd{
1818
cmd := &cobra.Command{
1919
Use: "remove-from-resource <firewall> (--type server --server <server> | --type label_selector --label-selector <label-selector>)",
2020
Short: "Removes a Firewall from a single resource",
21-
Args: util.Validate,
21+
Args: util.ValidateExact,
2222
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.Firewall().Names)),
2323
TraverseChildren: true,
2424
DisableFlagsInUseLine: true,

internal/cmd/firewall/replace_rules.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var ReplaceRulesCmd = base.Cmd{
2323
cmd := &cobra.Command{
2424
Use: "replace-rules <firewall> --rules-file <file>",
2525
Short: "Replaces all rules from a Firewall from a file",
26-
Args: util.Validate,
26+
Args: util.ValidateExact,
2727
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.Firewall().Names)),
2828
TraverseChildren: true,
2929
DisableFlagsInUseLine: true,

internal/cmd/floatingip/assign.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var AssignCmd = base.Cmd{
1717
return &cobra.Command{
1818
Use: "assign <floating-ip> <server>",
1919
Short: "Assign a Floating IP to a server",
20-
Args: util.Validate,
20+
Args: util.ValidateExact,
2121
ValidArgsFunction: cmpl.SuggestArgs(
2222
cmpl.SuggestCandidatesF(client.FloatingIP().Names),
2323
cmpl.SuggestCandidatesF(client.Server().Names),

internal/cmd/floatingip/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var CreateCmd = base.CreateCmd{
1919
cmd := &cobra.Command{
2020
Use: "create [options] --type <ipv4|ipv6> (--home-location <location> | --server <server>)",
2121
Short: "Create a Floating IP",
22-
Args: util.Validate,
22+
Args: util.ValidateExact,
2323
TraverseChildren: true,
2424
DisableFlagsInUseLine: true,
2525
}

internal/cmd/floatingip/floatingip.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func NewCommand(s state.State) *cobra.Command {
1111
cmd := &cobra.Command{
1212
Use: "floating-ip",
1313
Short: "Manage Floating IPs",
14-
Args: util.Validate,
14+
Args: util.ValidateExact,
1515
TraverseChildren: true,
1616
DisableFlagsInUseLine: true,
1717
}

internal/cmd/floatingip/unassign.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var UnassignCmd = base.Cmd{
1717
return &cobra.Command{
1818
Use: "unassign <floating-ip>",
1919
Short: "Unassign a Floating IP",
20-
Args: util.Validate,
20+
Args: util.ValidateExact,
2121
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.FloatingIP().Names)),
2222
TraverseChildren: true,
2323
DisableFlagsInUseLine: true,

internal/cmd/image/image.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func NewCommand(s state.State) *cobra.Command {
1111
cmd := &cobra.Command{
1212
Use: "image",
1313
Short: "Manage images",
14-
Args: util.Validate,
14+
Args: util.ValidateExact,
1515
TraverseChildren: true,
1616
DisableFlagsInUseLine: true,
1717
}

internal/cmd/iso/iso.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func NewCommand(s state.State) *cobra.Command {
1111
cmd := &cobra.Command{
1212
Use: "iso",
1313
Short: "Manage ISOs",
14-
Args: util.Validate,
14+
Args: util.ValidateExact,
1515
TraverseChildren: true,
1616
DisableFlagsInUseLine: true,
1717
}

internal/cmd/loadbalancer/add_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var AddServiceCmd = base.Cmd{
1818
cmd := &cobra.Command{
1919
Use: "add-service [options] <load-balancer> (--protocol http | --protocol tcp --listen-port <1-65535> --destination-port <1-65535> | --protocol https --http-certificates <ids>)",
2020
Short: "Add a service to a Load Balancer",
21-
Args: util.Validate,
21+
Args: util.ValidateExact,
2222
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.LoadBalancer().Names)),
2323
TraverseChildren: true,
2424
DisableFlagsInUseLine: true,

internal/cmd/loadbalancer/add_target.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var AddTargetCmd = base.Cmd{
1919
cmd := &cobra.Command{
2020
Use: "add-target [options] <load-balancer>",
2121
Short: "Add a target to a Load Balancer",
22-
Args: util.Validate,
22+
Args: util.ValidateExact,
2323
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.LoadBalancer().Names)),
2424
TraverseChildren: true,
2525
DisableFlagsInUseLine: true,

internal/cmd/loadbalancer/attach_to_network.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var AttachToNetworkCmd = base.Cmd{
1818
cmd := &cobra.Command{
1919
Use: "attach-to-network [--ip <ip>] <load-balancer> --network <network>",
2020
Short: "Attach a Load Balancer to a Network",
21-
Args: util.Validate,
21+
Args: util.ValidateExact,
2222
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.LoadBalancer().Names)),
2323
TraverseChildren: true,
2424
DisableFlagsInUseLine: true,

internal/cmd/loadbalancer/change_algorithm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var ChangeAlgorithmCmd = base.Cmd{
1818
cmd := &cobra.Command{
1919
Use: "change-algorithm <load-balancer> --algorithm-type <round_robin|least_connections>",
2020
Short: "Changes the algorithm of a Load Balancer",
21-
Args: util.Validate,
21+
Args: util.ValidateExact,
2222
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.LoadBalancer().Names)),
2323
TraverseChildren: true,
2424
DisableFlagsInUseLine: true,

internal/cmd/loadbalancer/change_type.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var ChangeTypeCmd = base.Cmd{
1818
return &cobra.Command{
1919
Use: "change-type <load-balancer> <load-balancer-type>",
2020
Short: "Change type of a Load Balancer",
21-
Args: util.Validate,
21+
Args: util.ValidateExact,
2222
ValidArgsFunction: cmpl.SuggestArgs(
2323
cmpl.SuggestCandidatesF(client.LoadBalancer().Names),
2424
cmpl.SuggestCandidatesF(client.LoadBalancerType().Names),

internal/cmd/loadbalancer/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var CreateCmd = base.CreateCmd{
1616
cmd := &cobra.Command{
1717
Use: "create [options] --name <name> --type <type>",
1818
Short: "Create a Load Balancer",
19-
Args: util.Validate,
19+
Args: util.ValidateExact,
2020
TraverseChildren: true,
2121
DisableFlagsInUseLine: true,
2222
}

internal/cmd/loadbalancer/detach_from_network.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var DetachFromNetworkCmd = base.Cmd{
1818
cmd := &cobra.Command{
1919
Use: "detach-from-network <load-balancer> --network <network>",
2020
Short: "Detach a Load Balancer from a Network",
21-
Args: util.Validate,
21+
Args: util.ValidateExact,
2222
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.LoadBalancer().Names)),
2323
TraverseChildren: true,
2424
DisableFlagsInUseLine: true,

internal/cmd/loadbalancer/disable_public_interface.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var DisablePublicInterfaceCmd = base.Cmd{
1717
return &cobra.Command{
1818
Use: "disable-public-interface [options] <load-balancer>",
1919
Short: "Disable the public interface of a Load Balancer",
20-
Args: util.Validate,
20+
Args: util.ValidateExact,
2121
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.LoadBalancer().Names)),
2222
TraverseChildren: true,
2323
DisableFlagsInUseLine: true,

internal/cmd/loadbalancer/enable_public_interface.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var EnablePublicInterfaceCmd = base.Cmd{
1717
return &cobra.Command{
1818
Use: "enable-public-interface <load-balancer>",
1919
Short: "Enable the public interface of a Load Balancer",
20-
Args: util.Validate,
20+
Args: util.ValidateExact,
2121
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.LoadBalancer().Names)),
2222
TraverseChildren: true,
2323
DisableFlagsInUseLine: true,

internal/cmd/loadbalancer/load_balancer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func NewCommand(s state.State) *cobra.Command {
1212
Use: "load-balancer",
1313
Short: "Manage Load Balancers",
1414
Aliases: []string{"loadbalancer"},
15-
Args: util.Validate,
15+
Args: util.ValidateExact,
1616
TraverseChildren: true,
1717
DisableFlagsInUseLine: true,
1818
}

internal/cmd/loadbalancer/metrics.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var MetricsCmd = base.Cmd{
3333
cmd := &cobra.Command{
3434
Use: fmt.Sprintf("metrics [options] <load-balancer> --type <%s>", strings.Join(metricTypeStrings, "|")),
3535
Short: "[ALPHA] Metrics from a Load Balancer",
36-
Args: util.Validate,
36+
Args: util.ValidateExact,
3737
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.LoadBalancer().Names)),
3838
TraverseChildren: true,
3939
DisableFlagsInUseLine: true,

internal/cmd/loadbalancer/remove_target.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var RemoveTargetCmd = base.Cmd{
1919
cmd := &cobra.Command{
2020
Use: "remove-target [options] <load-balancer>",
2121
Short: "Remove a target from a Load Balancer",
22-
Args: util.Validate,
22+
Args: util.ValidateExact,
2323
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.LoadBalancer().Names)),
2424
TraverseChildren: true,
2525
DisableFlagsInUseLine: true,

internal/cmd/loadbalancer/update_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var UpdateServiceCmd = base.Cmd{
1919
cmd := &cobra.Command{
2020
Use: "update-service [options] <load-balancer> --listen-port <1-65535>",
2121
Short: "Updates a service from a Load Balancer",
22-
Args: util.Validate,
22+
Args: util.ValidateExact,
2323
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.LoadBalancer().Names)),
2424
TraverseChildren: true,
2525
DisableFlagsInUseLine: true,

internal/cmd/loadbalancertype/load_balancer_type.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func NewCommand(s state.State) *cobra.Command {
1111
cmd := &cobra.Command{
1212
Use: "load-balancer-type",
1313
Short: "Manage Load Balancer types",
14-
Args: util.Validate,
14+
Args: util.ValidateExact,
1515
TraverseChildren: true,
1616
DisableFlagsInUseLine: true,
1717
}

internal/cmd/location/location.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func NewCommand(s state.State) *cobra.Command {
1111
cmd := &cobra.Command{
1212
Use: "location",
1313
Short: "Manage locations",
14-
Args: util.Validate,
14+
Args: util.ValidateExact,
1515
TraverseChildren: true,
1616
DisableFlagsInUseLine: true,
1717
}

internal/cmd/network/add_route.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var AddRouteCmd = base.Cmd{
1919
cmd := &cobra.Command{
2020
Use: "add-route <network> --destination <destination> --gateway <ip>",
2121
Short: "Add a route to a network",
22-
Args: util.Validate,
22+
Args: util.ValidateExact,
2323
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.Network().Names)),
2424
TraverseChildren: true,
2525
DisableFlagsInUseLine: true,

0 commit comments

Comments
 (0)