mirror of https://github.com/docker/buildx.git
Merge pull request #3264 from crazy-max/fix-args-history
history: fix required args for inspect attachment command
This commit is contained in:
commit
63bb3db985
|
|
@ -118,9 +118,9 @@ func attachmentCmd(dockerCli command.Cli, rootOpts RootOptions) *cobra.Command {
|
|||
var options attachmentOptions
|
||||
|
||||
cmd := &cobra.Command{
|
||||
Use: "attachment [OPTIONS] REF [DIGEST]",
|
||||
Use: "attachment [OPTIONS] [REF [DIGEST]]",
|
||||
Short: "Inspect a build record attachment",
|
||||
Args: cobra.RangeArgs(1, 2),
|
||||
Args: cobra.MaximumNArgs(2),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
if len(args) > 0 {
|
||||
options.ref = args[0]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# docker buildx history inspect attachment
|
||||
|
||||
```text
|
||||
docker buildx history inspect attachment [OPTIONS] REF [DIGEST]
|
||||
docker buildx history inspect attachment [OPTIONS] [REF [DIGEST]]
|
||||
```
|
||||
|
||||
<!---MARKER_GEN_START-->
|
||||
|
|
|
|||
Loading…
Reference in New Issue