From 1d34f793addd90af17c2886146ee395f985b78ad Mon Sep 17 00:00:00 2001 From: Alexis Montagne Date: Tue, 12 May 2015 19:01:06 +0200 Subject: [PATCH] Fix behaviour typo --- README.md | 2 +- etcdenv.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ec21b2..cafeb8f 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ GOPATH=`pwd`/Godeps/_workspace go build -o etcdenv . | ------ | ------- | ----------- | | `server`, `s` | http://127.0.0.1:4001 | Location of the etcd server | | `namespace`, `n`| /environments/production | Etcd directory where the environment variables are fetched. You can watch multiple namespaces by using a comma-separated list (/environments/production,/environments/global) | -| `shutdownBehavour`, `b` | keepalive | Strategy to apply when the process exit, further information into the next paragraph | +| `shutdown-behaviour`, `b` | keepalive | Strategy to apply when the process exit, further information into the next paragraph | | `watched`, `w` | `""` | A comma-separated list of environment variables triggering the command restart when they change | diff --git a/etcdenv.go b/etcdenv.go index bf1212b..8cc82dc 100644 --- a/etcdenv.go +++ b/etcdenv.go @@ -54,7 +54,7 @@ func init() { flagset.BoolVar(&flags.Version, "v", false, "Print the version and exit") flagset.StringVar(&flags.ShutdownBehaviour, "b", "keepalive", "Behaviour when the process stop [exit|keepalive|restart]") - flagset.StringVar(&flags.ShutdownBehaviour, "shutdownBehaviour", "keepalive", "Behaviour when the process stop [exit|keepalive|restart]") + flagset.StringVar(&flags.ShutdownBehaviour, "shutdown-behaviour", "keepalive", "Behaviour when the process stop [exit|keepalive|restart]") flagset.StringVar(&flags.Server, "server", "http://127.0.0.1:4001", "Location of the etcd server") flagset.StringVar(&flags.Server, "s", "http://127.0.0.1:4001", "Location of the etcd server")