Auto detect if need country group

This commit is contained in:
2024-10-01 12:45:55 +08:00
parent 59a258f4ef
commit 5fea337b6c
3 changed files with 10 additions and 4 deletions

View File

@ -19,7 +19,6 @@ var (
output string
delete string
rename map[string]string
group bool
groupType string
sortKey string
sortType string
@ -33,7 +32,6 @@ func init() {
convertCmd.Flags().StringVarP(&output, "output", "o", "", "output file path")
convertCmd.Flags().StringVarP(&delete, "delete", "d", "", "delete proxy with regex")
convertCmd.Flags().StringToStringVarP(&rename, "rename", "r", nil, "rename proxy with regex")
convertCmd.Flags().BoolVarP(&group, "group", "g", false, "group proxies by country")
convertCmd.Flags().StringVarP(&groupType, "group-type", "G", "selector", "group type, selector or urltest")
convertCmd.Flags().StringVarP(&sortKey, "sort", "S", "tag", "sort key, tag or num")
convertCmd.Flags().StringVarP(&sortType, "sort-type", "T", "asc", "sort type, asc or desc")