feat(cmd): compatible windows double click

compatible windows double click

Signed-off-by: mritd <mritd@linux.com>
This commit is contained in:
mritd 2022-02-14 14:25:52 +08:00
parent e1c36405c2
commit 870e13ed4c
No known key found for this signature in database
GPG Key ID: 150E1851F767CDDD

View File

@ -142,6 +142,9 @@ func init() {
// compatible with old flag format
fakeFlags()
// compatible windows double click
cobra.MousetrapHelpText = ""
// add global flags
rootCmd.PersistentFlags().StringP("config", "c", "./config.json", "config file")
rootCmd.PersistentFlags().String("mmdb-url", "https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-Country.mmdb", "mmdb download url")