Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #381 from felipecrs/fix-types-mentions
Browse files Browse the repository at this point in the history
Fix incorrect mentions to --types in help messages
  • Loading branch information
loosebazooka authored Feb 22, 2024
2 parents f44a0ce + 15954b5 commit ae4befd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Huge thanks goes out to all of our contributors for this release:
* Fix Makefile to preserve all build artifacts

# Version 0.5.1 - 11/20/17
* Change types flag from comma separated --types list to repeated --typeflag
* Change types flag from comma separated --types list to repeated --type flag
* Added --filename flag to show diffs of individual files
* Added layer caching

Expand Down
4 changes: 2 additions & 2 deletions cmd/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func checkFilenameFlag(_ []string) error {
return nil
}
}
return errors.New("please include --types=file with the --filename flag")
return errors.New("please include --type=file with the --filename flag")
}

// processImage is a concurrency-friendly wrapper around getImageForName
Expand Down Expand Up @@ -174,7 +174,7 @@ func diffFile(image1, image2 *pkgutil.Image) error {
}

func init() {
diffCmd.Flags().StringVarP(&filename, "filename", "f", "", "Set this flag to the path of a file in both containers to view the diff of the file. Must be used with --types=file flag.")
diffCmd.Flags().StringVarP(&filename, "filename", "f", "", "Set this flag to the path of a file in both containers to view the diff of the file. Must be used with --type=file flag.")
RootCmd.AddCommand(diffCmd)
addSharedFlags(diffCmd)
output.AddFlags(diffCmd)
Expand Down

0 comments on commit ae4befd

Please sign in to comment.