Skip to content

Commit 64ec3ed

Browse files
committed
Add parentheses and spaces to update-stack usage command
Signed-off-by: Simon Jones <simonjones@vmware.com>
1 parent 6df05cc commit 64ec3ed

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

command/v7/update_stack_command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type UpdateStackCommand struct {
1313

1414
RequiredArgs flag.StackName `positional-args:"yes"`
1515
State string `long:"state" description:"State to transition the stack to (active, restricted, deprecated, disabled)" required:"true"`
16-
usage interface{} `usage:"CF_NAME update-stack STACK_NAME [--state active|restricted|deprecated|disabled]\n\nEXAMPLES:\n CF_NAME update-stack cflinuxfs3 --state disabled"`
16+
usage interface{} `usage:"CF_NAME update-stack STACK_NAME [--state (active | restricted | deprecated | disabled)]\n\nEXAMPLES:\n CF_NAME update-stack cflinuxfs3 --state disabled"`
1717
relatedCommands interface{} `related_commands:"stack, stacks"`
1818
}
1919

integration/v7/isolated/update_stack_command_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
. "code.cloudfoundry.org/cli/v8/cf/util/testhelpers/matchers"
88

99
"code.cloudfoundry.org/cli/v8/integration/helpers"
10-
"code.cloudfoundry.org/cli/v8/resources"
1110
. "github.com/onsi/ginkgo/v2"
1211
. "github.com/onsi/gomega"
1312
. "github.com/onsi/gomega/gbytes"
@@ -45,7 +44,7 @@ var _ = Describe("update-stack command", func() {
4544
Eventually(session).Should(Say(`NAME:`))
4645
Eventually(session).Should(Say(`update-stack - Transition a stack between the defined states`))
4746
Eventually(session).Should(Say(`USAGE:`))
48-
Eventually(session).Should(Say(`cf update-stack STACK_NAME \[--state active\|restricted\|deprecated\|disabled\]`))
47+
Eventually(session).Should(Say(`cf update-stack STACK_NAME \[--state \(active \| restricted \| deprecated \| disabled\)\]`))
4948
Eventually(session).Should(Say(`EXAMPLES:`))
5049
Eventually(session).Should(Say(`cf update-stack cflinuxfs3 --state disabled`))
5150
Eventually(session).Should(Say(`OPTIONS:`))

0 commit comments

Comments
 (0)