Skip to content

Commit

Permalink
accept 0 args (#1682)
Browse files Browse the repository at this point in the history
  • Loading branch information
rberrelleza committed Aug 2, 2021
1 parent ff295a8 commit c8f74cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/namespace/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func Namespace(ctx context.Context) *cobra.Command {
cmd := &cobra.Command{
Use: "namespace [name]",
Short: "Downloads k8s credentials for a namespace",
Args: utils.ExactArgsAccepted(1, "https://okteto.com/docs/reference/cli/#namespace"),
Args: utils.MaximumNArgsAccepted(1, "https://okteto.com/docs/reference/cli/#namespace"),
RunE: func(cmd *cobra.Command, args []string) error {

namespace := ""
Expand Down

0 comments on commit c8f74cf

Please sign in to comment.