支持delete,修改err输出为stderr

This commit is contained in:
algotao
2025-04-22 14:30:30 +08:00
parent a0bf198879
commit e7d4aa27f1
16 changed files with 151 additions and 72 deletions

View File

@@ -38,7 +38,7 @@ func RunConvert(args ...string) error {
destPath := paramDestPath(fs)
if err := fs.Parse(args); err != nil {
fmt.Println("command line parse error", "err", err)
fmt.Fprintln(os.Stderr, "command line parse error", "err", err)
return err
}
@@ -49,7 +49,7 @@ func RunConvert(args ...string) error {
mapCfg, err := LoadMapFile(*mapCfgFile)
if err != nil {
fmt.Println("LoadConfigFile error", "err", err)
fmt.Fprintln(os.Stderr, "LoadConfigFile error", "err", err)
return err
}