Skip to content

Commit

Permalink
Allow exactly one argument to organizations.Switch
Browse files Browse the repository at this point in the history
Before, running `koyeb organizations switch` would crash
  • Loading branch information
nicoche committed Nov 16, 2023
1 parent 71b677b commit 1590645
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/koyeb/organizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func NewOrganizationCmd() *cobra.Command {
switchCmd := &cobra.Command{
Use: "switch",
Short: "Switch the CLI context to another organization",
Args: cobra.ExactArgs(1),
RunE: WithCLIContext(h.Switch),
}
rootCmd.AddCommand(switchCmd)
Expand Down

0 comments on commit 1590645

Please sign in to comment.