Ver código fonte

Merge pull request #1036 from porter-dev/0.8.0-1034-porter-logs-failure

[0.8.0] Fixes #1034: set number of args to `porter logs`
abelanger5 4 anos atrás
pai
commit
971a6a43d2
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      cli/cmd/logs.go

+ 1 - 0
cli/cmd/logs.go

@@ -13,6 +13,7 @@ import (
 // without any subcommands
 // without any subcommands
 var logsCmd = &cobra.Command{
 var logsCmd = &cobra.Command{
 	Use:   "logs [release]",
 	Use:   "logs [release]",
+	Args:  cobra.ExactArgs(1),
 	Short: "Logs the output from a given application.",
 	Short: "Logs the output from a given application.",
 	Run: func(cmd *cobra.Command, args []string) {
 	Run: func(cmd *cobra.Command, args []string) {
 		err := checkLoginAndRun(args, logs)
 		err := checkLoginAndRun(args, logs)