Skip to content

Commit 3ec606e

Browse files
committed
-z to -O
1 parent 8b7942c commit 3ec606e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cli/organizationmembers_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func TestAddOrganizationMembers(t *testing.T) {
5656
})
5757
require.NoError(t, err, "create another organization")
5858

59-
inv, root := clitest.New(t, "organization", "members", "add", "-z", otherOrg.ID.String(), user.Username)
59+
inv, root := clitest.New(t, "organization", "members", "add", "-O", otherOrg.ID.String(), user.Username)
6060
//nolint:gocritic // must be an owner
6161
clitest.SetupConfig(t, ownerClient, root)
6262

@@ -86,7 +86,7 @@ func TestRemoveOrganizationMembers(t *testing.T) {
8686

8787
ctx := testutil.Context(t, testutil.WaitMedium)
8888

89-
inv, root := clitest.New(t, "organization", "members", "remove", "-z", owner.OrganizationID.String(), user.Username)
89+
inv, root := clitest.New(t, "organization", "members", "remove", "-O", owner.OrganizationID.String(), user.Username)
9090
clitest.SetupConfig(t, orgAdminClient, root)
9191

9292
buf := new(bytes.Buffer)
@@ -109,7 +109,7 @@ func TestRemoveOrganizationMembers(t *testing.T) {
109109

110110
ctx := testutil.Context(t, testutil.WaitMedium)
111111

112-
inv, root := clitest.New(t, "organization", "members", "remove", "-z", owner.OrganizationID.String(), "random_name")
112+
inv, root := clitest.New(t, "organization", "members", "remove", "-O", owner.OrganizationID.String(), "random_name")
113113
clitest.SetupConfig(t, orgAdminClient, root)
114114

115115
buf := new(bytes.Buffer)

cli/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ func (o *OrganizationContext) AttachOptions(cmd *serpent.Command) {
639639
// Otherwise, we can assume a default value.
640640
Required: false,
641641
Flag: "org",
642-
FlagShorthand: "z",
642+
FlagShorthand: "O",
643643
Env: "CODER_ORGANIZATION",
644644
Value: serpent.StringOf(&o.FlagSelect),
645645
})

0 commit comments

Comments
 (0)