Explorar o código

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 %!s(int64=4) %!d(string=hai) anos
pai
achega
971a6a43d2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      cli/cmd/logs.go

+ 1 - 0
cli/cmd/logs.go

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