From 0a87b5ac3c06d268ee5d89586a0bbcd035c1921d Mon Sep 17 00:00:00 2001 From: tongjingran Date: Mon, 20 Jul 2020 17:39:25 +0800 Subject: [PATCH 1/2] clearer description --- cmd/profile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/profile.go b/cmd/profile.go index 4d9fa9d..5f8c60f 100644 --- a/cmd/profile.go +++ b/cmd/profile.go @@ -81,8 +81,8 @@ var addrList []string func init() { profileCmd.Flags().StringVarP(&output, "output", "o", "", "download cover profile") - profileCmd.Flags().StringSliceVarP(&svrList, "service", "", nil, "get the cover profile of these services, you can get all available service names from command `goc list`, use this flag and 'address' flag at the same time may cause ambiguity, please use them separately.") - profileCmd.Flags().StringSliceVarP(&addrList, "address", "", nil, "get the cover profile of these addresses, you can get all available addresses from command `goc list`, use this flag and 'service' flag at the same time may cause ambiguity, please use them separately.") + profileCmd.Flags().StringSliceVarP(&svrList, "service", "", nil, "get the cover profile of these services.") + profileCmd.Flags().StringSliceVarP(&addrList, "address", "", nil, "get the cover profile of these addresses.") profileCmd.Flags().BoolVarP(&force, "force", "f", false, "force to get the coverage counter of all the available services you want") addBasicFlags(profileCmd.Flags()) rootCmd.AddCommand(profileCmd) From 4ebcd7c6acfa71c2148e16336ce9ee8dab61d1ea Mon Sep 17 00:00:00 2001 From: tongjingran Date: Mon, 20 Jul 2020 19:56:01 +0800 Subject: [PATCH 2/2] clearer description --- cmd/profile.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/profile.go b/cmd/profile.go index 5f8c60f..16e98fd 100644 --- a/cmd/profile.go +++ b/cmd/profile.go @@ -44,7 +44,7 @@ goc profile --service=service1,service2,service3 # Get coverage counter of several specified addresses. You can get all available addresses from command 'goc list'. Use 'service' and 'address' flag at the same time may cause ambiguity, please use them separately. goc profile --address=address1,address2,address3 -# Force to get the coverage counter of all the available services you want. +# Force fetching all available profiles. goc profile --force `, Run: func(cmd *cobra.Command, args []string) { @@ -81,9 +81,9 @@ var addrList []string func init() { profileCmd.Flags().StringVarP(&output, "output", "o", "", "download cover profile") - profileCmd.Flags().StringSliceVarP(&svrList, "service", "", nil, "get the cover profile of these services.") - profileCmd.Flags().StringSliceVarP(&addrList, "address", "", nil, "get the cover profile of these addresses.") - profileCmd.Flags().BoolVarP(&force, "force", "f", false, "force to get the coverage counter of all the available services you want") + profileCmd.Flags().StringSliceVarP(&svrList, "service", "", nil, "service name to fetch profile, see 'goc list' for all services.") + profileCmd.Flags().StringSliceVarP(&addrList, "address", "", nil, "address to fetch profile, see 'goc list' for all addresses.") + profileCmd.Flags().BoolVarP(&force, "force", "f", false, "force fetching all available profiles") addBasicFlags(profileCmd.Flags()) rootCmd.AddCommand(profileCmd) }