You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/10/09 00:59:50 UTC

[GitHub] little-cui closed pull request #454: SCB-951 Wrong help information in scctl

little-cui closed pull request #454: SCB-951 Wrong help information in scctl
URL: https://github.com/apache/incubator-servicecomb-service-center/pull/454
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/scctl/pkg/plugin/README.md b/scctl/pkg/plugin/README.md
index 979cdeaa..39096e86 100644
--- a/scctl/pkg/plugin/README.md
+++ b/scctl/pkg/plugin/README.md
@@ -20,9 +20,9 @@ Get the microservices list from ServiceCenter. `service` command can be instead
 
 #### Options
 
-- `domain`(d) domain name, return `default` domain microservices list by default.
-- `output`(o) support mode `wide`, return the complete microservices information(e.g., framework, endpoints).
-- `all-domains` return all domains microservices information.
+- `domain`(d) print the information under the specified domain in service center, print under the `default` domain by default.
+- `output`(o) support mode `wide`, output the complete microservices information(e.g., framework, endpoints).
+- `all-domains` print the information under all domains in service center.
 
 #### Examples
 
diff --git a/scctl/pkg/plugin/get/cmd.go b/scctl/pkg/plugin/get/cmd.go
index 05fa3ad7..ba86983c 100644
--- a/scctl/pkg/plugin/get/cmd.go
+++ b/scctl/pkg/plugin/get/cmd.go
@@ -37,9 +37,9 @@ func NewGetCommand(parent *cobra.Command) *cobra.Command {
 		Short: "Output the resources information of service center",
 	}
 	parent.AddCommand(cmd)
-	cmd.PersistentFlags().StringVarP(&Domain, "domain", "d", "default", "the info of the service center")
-	cmd.PersistentFlags().StringVarP(&Output, "output", "o", "", "print the info of the service center")
-	cmd.PersistentFlags().BoolVar(&AllDomains, "all-domains", false, "print the info of the service center")
+	cmd.PersistentFlags().StringVarP(&Domain, "domain", "d", "default", "print the information under the specified domain in service center")
+	cmd.PersistentFlags().StringVarP(&Output, "output", "o", "", "output the complete microservice information(e.g., framework, endpoints)")
+	cmd.PersistentFlags().BoolVar(&AllDomains, "all-domains", false, "print the information under all domains in service center")
 
 	return cmd
 }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services