Skip to content

Commit

Permalink
get/firmware-set: Fix for mutually exclusive flags (#111)
Browse files Browse the repository at this point in the history
During the refactor to standardize all flags, the flags for get
firmware-set was inadvertently switch from being mutually exclusive
to requried. This change makes the flags mutually exclusive again.
  • Loading branch information
coffeefreak101 authored Apr 23, 2024
1 parent 9d20393 commit 7863b44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/get/firmware-set.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,5 @@ func init() {
mctl.AddServerFlag(getFirmwareSet, &flagsDefinedGetFirmwareSet.serverID)
mctl.AddFirmwareSetFlag(getFirmwareSet, &flagsDefinedGetFirmwareSet.id)

mctl.RequireFlag(getFirmwareSet, mctl.ServerFlag)
mctl.MutuallyExclusiveFlags(getFirmwareSet, mctl.ServerFlag, mctl.FirmwareSetFlag)
}
4 changes: 2 additions & 2 deletions docs/mctl_get_firmware-set.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
Get information for given firmware set identifier

```
mctl get firmware-set -s SERVER [flags]
mctl get firmware-set [flags]
```

### Options

```
-h, --help help for firmware-set
-s, --server string [required] ID of the server
-s, --server string ID of the server
--set-id string ID of the firmware set
```

Expand Down

0 comments on commit 7863b44

Please sign in to comment.