From a90e739dda6aea82375876d7e624d5c121347f8f Mon Sep 17 00:00:00 2001 From: Daniel Dabrowski Date: Wed, 3 Jul 2019 09:50:09 +0200 Subject: [PATCH] fix(flags): do not overwrite bucket with prefix --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index a059430..3ae6b7a 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -70,7 +70,7 @@ func init() { rootCmd.Flags().BoolVarP(&version, "help", "h", false, "Print the usage of s3-grep") rootCmd.Flags().StringVarP(&profile, "profile", "p", "", "The AWS profile the S3 bucketName is hosted in") rootCmd.Flags().StringVarP(&bucketName, "bucket", "b", "", "The bucketName name to grep in") - rootCmd.Flags().StringVarP(&bucketName, "prefix", "", "", "The prefix to grep in (subfolder)") + rootCmd.Flags().StringVarP(&prefix, "prefix", "", "", "The prefix to grep in (subfolder)") rootCmd.Flags().BoolVarP(&ignoreCase, "", "i", false, "Ignore case of the search query while grepping") rootCmd.MarkFlagRequired("profile")