保留可配置入口,未启用

This commit is contained in:
nuknal
2024-05-30 11:46:50 +08:00
parent 07ee4d88d4
commit e4d6b35702
11 changed files with 159 additions and 28 deletions

View File

@@ -6,6 +6,10 @@ import (
"github.com/spf13/cobra"
)
var (
configFile string
)
var rootCmd = &cobra.Command{
Use: "SJY01 Image processing tools",
Short: "Preprocessing tools for SJY01 original image data",
@@ -14,3 +18,7 @@ var rootCmd = &cobra.Command{
fmt.Println("preprocessing tools for SJY01 original image data")
},
}
func init() {
rootCmd.PersistentFlags().StringVarP(&configFile, "config", "c", "config/config.yaml", "config file (default is config/config.yaml)")
}