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