diff --git a/README.md b/README.md index 27179b1..937cea3 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Execute from the working directory: ``` docker run --rm \ - -e PLUGIN_TELEGRAM_TOKEN=xxxxxxx \ + -e PLUGIN_TOKEN=xxxxxxx \ -e PLUGIN_TO=xxxxxxx \ -e PLUGIN_MESSAGE=test \ -e PLUGIN_DEBUG=true \ diff --git a/main.go b/main.go index 75468ec..042b718 100644 --- a/main.go +++ b/main.go @@ -18,9 +18,9 @@ func main() { app.Version = Version app.Flags = []cli.Flag{ cli.StringFlag{ - Name: "telegram.token", + Name: "token", Usage: "telegram token", - EnvVar: "PLUGIN_TELEGRAM_TOKEN,TELEGRAM_TOKEN", + EnvVar: "PLUGIN_TOKEN,TELEGRAM_TOKEN", }, cli.StringSliceFlag{ Name: "to", @@ -111,7 +111,7 @@ func run(c *cli.Context) error { Link: c.String("build.link"), }, Config: Config{ - Token: c.String("telegram.token"), + Token: c.String("token"), Debug: c.Bool("debug"), To: c.StringSlice("to"), Message: c.StringSlice("message"),