From d3aece70cc220ddd314db6540beec93924c01eb9 Mon Sep 17 00:00:00 2001 From: nite07 Date: Sat, 16 Nov 2024 01:16:22 +0800 Subject: [PATCH] fix --- cmd/convert.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/convert.go b/cmd/convert.go index 894ee70..e80a238 100755 --- a/cmd/convert.go +++ b/cmd/convert.go @@ -27,12 +27,12 @@ var ( ) func init() { - convertCmd.Flags().StringSliceVarP(&subscriptions, "subscription", "s", nil, "subscription URLs") - convertCmd.Flags().StringSliceVarP(&proxies, "proxy", "p", nil, "proxies share links") + convertCmd.Flags().StringSliceVarP(&subscriptions, "subscription", "s", make([]string, 0), "subscription URLs") + convertCmd.Flags().StringSliceVarP(&proxies, "proxy", "p", make([]string, 0), "proxies share links") convertCmd.Flags().StringVarP(&template, "template", "t", "", "template file path or URL") convertCmd.Flags().StringVarP(&output, "output", "o", "", "output file path") convertCmd.Flags().StringVarP(&delete, "delete", "d", "", "delete proxies with regex") - convertCmd.Flags().StringToStringVarP(&rename, "rename", "r", nil, "rename proxies with regex") + convertCmd.Flags().StringToStringVarP(&rename, "rename", "r", make(map[string]string), "rename proxies with regex") convertCmd.Flags().BoolVarP(&group, "group", "g", false, "grouping proxies by country") convertCmd.Flags().StringVarP(&groupType, "group-type", "G", "", "group type, selector or urltest") convertCmd.Flags().StringVarP(&sortKey, "sort", "S", "", "sort key, tag or num")