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,18 +66,21 @@ var parser = kubecfg.NewParser(map[string]interface{}{
}) })
func usage() { 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>] kubecfg [OPTIONS] get|list|create|delete|update <%s>[/<id>]
Manage replication controllers: Manage replication controllers:
kubecfg [OPTIONS] stop|rm <controller> 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> kubecfg [OPTIONS] resize <controller> <replicas>
Launch a simple ReplicationController with a single container based Launch a simple ReplicationController with a single container based
on the given image: on the given image:
kubecfg [OPTIONS] [-p <port spec>] run <image> <replicas> <controller> kubecfg [OPTIONS] [-p <port spec>] run <image> <replicas> <controller>
Options: Options: