Skip to content

Commit 961bf2f

Browse files
committed
changed the flag description
1 parent d95dfcf commit 961bf2f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/stackit_beta_security-group_rule_create.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ stackit beta security-group rule create [flags]
3838
--ip-range string The remote IP range which the rule should match
3939
--port-range-max int The maximum port number. Should be greater or equal to the minimum. This should only be provided if the protocol is not ICMP
4040
--port-range-min int The minimum port number. Should be less or equal to the maximum. This should only be provided if the protocol is not ICMP
41-
--protocol-name name The protocol name which the rule should match. If a protocol is to be defined, either name or `number` must be provided
42-
--protocol-number name The protocol number which the rule should match. If a protocol is to be defined, either name or `number` must be provided
41+
--protocol-name protocol-name The protocol name which the rule should match. If a protocol is to be defined, either protocol-name or `protocol-number` must be provided
42+
--protocol-number protocol-name The protocol number which the rule should match. If a protocol is to be defined, either protocol-name or `protocol-number` must be provided
4343
--remote-security-group-id string The remote security group which the rule should match
4444
--security-group-id string The security group ID
4545
```

internal/cmd/beta/security-group/rule/create/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ func configureFlags(cmd *cobra.Command) {
133133
cmd.Flags().Int64(portRangeMaxFlag, 0, "The maximum port number. Should be greater or equal to the minimum. This should only be provided if the protocol is not ICMP")
134134
cmd.Flags().Int64(portRangeMinFlag, 0, "The minimum port number. Should be less or equal to the maximum. This should only be provided if the protocol is not ICMP")
135135
cmd.Flags().Var(flags.UUIDFlag(), remoteSecurityGroupIdFlag, "The remote security group which the rule should match")
136-
cmd.Flags().Int64(protocolNumberFlag, 0, "The protocol number which the rule should match. If a protocol is to be defined, either `name` or `number` must be provided")
137-
cmd.Flags().String(protocolNameFlag, "", "The protocol name which the rule should match. If a protocol is to be defined, either `name` or `number` must be provided")
136+
cmd.Flags().Int64(protocolNumberFlag, 0, "The protocol number which the rule should match. If a protocol is to be defined, either `protocol-name` or `protocol-number` must be provided")
137+
cmd.Flags().String(protocolNameFlag, "", "The protocol name which the rule should match. If a protocol is to be defined, either `protocol-name` or `protocol-number` must be provided")
138138

139139
err := flags.MarkFlagsRequired(cmd, securityGroupIdFlag, directionFlag)
140140
cmd.MarkFlagsMutuallyExclusive(protocolNumberFlag, protocolNameFlag)

0 commit comments

Comments
 (0)