fix(cmd/influx): remove dup usage
parent
0dde41f895
commit
f8dee71516
|
@ -54,17 +54,14 @@ func fluxDeleteF(cmd *cobra.Command, args []string) error {
|
|||
ctx := context.Background()
|
||||
|
||||
if deleteFlags.Org == "" && deleteFlags.OrgID == "" {
|
||||
cmd.Usage()
|
||||
return fmt.Errorf("please specify one of org or org-id")
|
||||
}
|
||||
|
||||
if deleteFlags.Bucket == "" && deleteFlags.BucketID == "" {
|
||||
cmd.Usage()
|
||||
return fmt.Errorf("please specify one of bucket or bucket-id")
|
||||
}
|
||||
|
||||
if deleteFlags.Start == "" || deleteFlags.Stop == "" {
|
||||
cmd.Usage()
|
||||
return fmt.Errorf("both start and stop are required")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue