Improve 'Usage' for kubecfg

pull/6/head
Joe Beda 2014-09-02 20:47:15 -07:00
parent ce34eacd2c
commit e5fe8270a1
1 changed files with 10 additions and 7 deletions

View File

@ -66,21 +66,24 @@ var parser = kubecfg.NewParser(map[string]interface{}{
})
func usage() {
fmt.Fprintf(os.Stderr, `usage: kubecfg -h [-c config/file.json] [-p :,..., :] <method>
fmt.Fprintf(os.Stderr, `Usage: kubecfg -h [-c config/file.json] <method>
Kubernetes REST API:
Kubernetes REST API:
kubecfg [OPTIONS] get|list|create|delete|update <%s>[/<id>]
Manage replication controllers:
Manage replication controllers:
kubecfg [OPTIONS] stop|rm <controller>
kubecfg [OPTIONS] [-u <time>] [-image image] rollingupdate <controller>
kubecfg [OPTIONS] [-u <time>] [-image <image>] rollingupdate <controller>
kubecfg [OPTIONS] resize <controller> <replicas>
Launch a simple ReplicationController with a single container based
on the given image:
Launch a simple ReplicationController with a single container based
on the given image:
kubecfg [OPTIONS] [-p <port spec>] run <image> <replicas> <controller>
Options:
Options:
`, prettyWireStorage())
flag.PrintDefaults()