整理打印
This commit is contained in:
+5
-4
@@ -2,6 +2,7 @@ package cmd
|
||||
|
||||
import (
|
||||
"complie-erlang/config"
|
||||
"complie-erlang/parser/zm_lib"
|
||||
"complie-erlang/worker"
|
||||
"fmt"
|
||||
"github.com/spf13/cobra"
|
||||
@@ -66,9 +67,9 @@ func (s *Pb2Port) run(_ *cobra.Command, arg []string) {
|
||||
}
|
||||
|
||||
if s.debug {
|
||||
for key, arg1 := range args {
|
||||
fmt.Println(key, "-->", arg1)
|
||||
}
|
||||
fmt.Println("参数打印: ")
|
||||
_ = zm_lib.PrintArgsMap(args)
|
||||
fmt.Println("")
|
||||
}
|
||||
|
||||
_, err = os.Stat(s.out)
|
||||
@@ -82,7 +83,7 @@ func (s *Pb2Port) run(_ *cobra.Command, arg []string) {
|
||||
}
|
||||
|
||||
if s.debug {
|
||||
fmt.Println("template:", template)
|
||||
fmt.Println("模板输出:\n", template)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user