history: fix required args for inspect attachment command
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -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-->
|
||||
|
||||
Reference in New Issue
Block a user