Explorar o código

fixes #1034: set number of args to porter logs

Alexander Belanger %!s(int64=4) %!d(string=hai) anos
pai
achega
d11cb97850
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)