fix(cmd/influx): remove dup usage

pull/15684/head
Kelvin Wang 2019-10-31 12:32:50 -04:00
parent 0dde41f895
commit f8dee71516
1 changed files with 0 additions and 3 deletions

View File

@ -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")
}