Skip to content

Commit

Permalink
fix(flags): do not overwrite bucket with prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Dabrowski committed Jul 3, 2019
1 parent 0f607aa commit a90e739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a90e739

Please sign in to comment.