history: fix required args for inspect attachment command

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2025-06-24 16:06:54 +02:00
parent e9b6a01aef
commit 179aad79b5
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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-->