Merge pull request #3264 from crazy-max/fix-args-history

history: fix required args for inspect attachment command
This commit is contained in:
Tõnis Tiigi 2025-06-24 11:13:05 -07:00 committed by GitHub
commit 63bb3db985
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

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]

View File

@ -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-->