整理打印

This commit is contained in:
2025-09-30 01:48:54 +08:00
parent cee7898fff
commit bff7f73d8b
4 changed files with 73 additions and 15 deletions
+5 -4
View File
@@ -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
}