diff --git a/internal/ips/assign.go b/internal/ips/assign.go index ec54ce3..66068ab 100644 --- a/internal/ips/assign.go +++ b/internal/ips/assign.go @@ -65,7 +65,6 @@ func (c *Client) Assign() *cobra.Command { ipAssignCmd.Flags().StringVarP(&targetIPID, "target-ip-id", "", "", "Subnet or primary-ip type IP ID to route IP to.") ipAssignCmd.MarkFlagsMutuallyExclusive("target-hostname", "target-id", "target-ip-id") - ipAssignCmd.MarkFlagsRequiredTogether("target-hostname", "project-id") ipAssignCmd.MarkFlagRequired("ip-address-id") return ipAssignCmd diff --git a/internal/ips/create.go b/internal/ips/create.go index 8a1887d..b0f711d 100644 --- a/internal/ips/create.go +++ b/internal/ips/create.go @@ -88,7 +88,6 @@ func (c *Client) Create() *cobra.Command { ipCreateCmd.Flags().StringSliceVarP(&tags, "tags", "", []string{}, `Tag or list of tags for the server: --tags="key=value,env=prod".`) ipCreateCmd.MarkFlagsMutuallyExclusive("target-hostname", "target-id", "target-ip-id") - ipCreateCmd.MarkFlagsRequiredTogether("target-hostname", "project-id") ipCreateCmd.MarkFlagRequired("project-id") ipCreateCmd.MarkFlagRequired("region") diff --git a/internal/servers/get.go b/internal/servers/get.go index d277fe1..35fa859 100644 --- a/internal/servers/get.go +++ b/internal/servers/get.go @@ -51,7 +51,6 @@ func (c *Client) Get() *cobra.Command { serverGetCmd.Flags().IntVarP(&projectID, "project-id", "p", 0, "The project's ID.") serverGetCmd.MarkFlagsMutuallyExclusive("server-id", "hostname") - serverGetCmd.MarkFlagsRequiredTogether("hostname", "project-id") return serverGetCmd } diff --git a/internal/storages/attach.go b/internal/storages/attach.go index 15361a5..bb80737 100644 --- a/internal/storages/attach.go +++ b/internal/storages/attach.go @@ -58,7 +58,6 @@ func (c *Client) Attach() *cobra.Command { storageAttachCmd.Flags().IntVarP(&projectID, "project-id", "p", 0, "The project's ID.") storageAttachCmd.MarkFlagsMutuallyExclusive("server-id", "server-hostname") - storageAttachCmd.MarkFlagsRequiredTogether("server-hostname", "project-id") storageAttachCmd.MarkFlagRequired("storage-id")