Skip to content

Commit

Permalink
Fix up the exit mode to exit
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisMontagne committed Aug 16, 2015
1 parent 02b7b39 commit 62401a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
| `shutdown-behaviour`, `b` | keepalive | Strategy to apply when the process exit, further information into the next paragraph |
| `shutdown-behaviour`, `b` | exit | 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 |


Expand Down
4 changes: 2 additions & 2 deletions etcdenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"strings"
)

const currentVersion = "0.3.0"
const currentVersion = "0.3.1"

var (
flagset = flag.NewFlagSet("etcdenv", flag.ExitOnError)
Expand Down Expand Up @@ -54,7 +54,7 @@ func init() {
flagset.BoolVar(&flags.Version, "v", false, "Print the version and exit")

flagset.StringVar(&flags.ShutdownBehaviour, "b", "exit", "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.ShutdownBehaviour, "shutdown-behaviour", "exit", "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")
Expand Down

0 comments on commit 62401a2

Please sign in to comment.