Skip to content

Commit

Permalink
Require 1 argument for buildpack inspect, in order to stop segfault
Browse files Browse the repository at this point in the history
Signed-off-by: David Freilich <dfreilich@vmware.com>
  • Loading branch information
dfreilich committed Feb 10, 2021
1 parent a38c2c8 commit 22693e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/commands/buildpack_inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func BuildpackInspect(logger logging.Logger, cfg config.Config, client PackClien
var flags BuildpackInspectFlags
cmd := &cobra.Command{
Use: "inspect <image-name>",
Args: cobra.MaximumNArgs(1),
Args: cobra.ExactArgs(1),
Short: "Show information about a buildpack",
Example: "pack buildpack inspect cnbs/sample-package:hello-universe",
RunE: logError(logger, func(cmd *cobra.Command, args []string) error {
Expand Down

0 comments on commit 22693e8

Please sign in to comment.