Skip to content

Commit 179aad7

Browse files
committed
history: fix required args for inspect attachment command
Signed-off-by: CrazyMax <[email protected]>
1 parent e9b6a01 commit 179aad7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

commands/history/inspect_attachment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ func attachmentCmd(dockerCli command.Cli, rootOpts RootOptions) *cobra.Command {
118118
var options attachmentOptions
119119

120120
cmd := &cobra.Command{
121-
Use: "attachment [OPTIONS] REF [DIGEST]",
121+
Use: "attachment [OPTIONS] [REF [DIGEST]]",
122122
Short: "Inspect a build record attachment",
123-
Args: cobra.RangeArgs(1, 2),
123+
Args: cobra.MaximumNArgs(2),
124124
RunE: func(cmd *cobra.Command, args []string) error {
125125
if len(args) > 0 {
126126
options.ref = args[0]

docs/reference/buildx_history_inspect_attachment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# docker buildx history inspect attachment
22

33
```text
4-
docker buildx history inspect attachment [OPTIONS] REF [DIGEST]
4+
docker buildx history inspect attachment [OPTIONS] [REF [DIGEST]]
55
```
66

77
<!---MARKER_GEN_START-->

0 commit comments

Comments
 (0)