瀏覽代碼

fixes #1034: set number of args to porter logs

Alexander Belanger 4 年之前
父節點
當前提交
d11cb97850
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)