CLI shows env var if set in help, override

Signed-off-by: jolheiser <john.olheiser@gmail.com>
pull/7/head
jolheiser 2021-02-27 23:01:21 -06:00
parent e0817ea38c
commit ba9333a076
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ func New() *cli.App {
Name: "token",
Aliases: []string{"t"},
Usage: "gpm auth token to use",
DefaultText: "${GPM_TOKEN}",
EnvVars: []string{"GPM_TOKEN"},
Destination: &flags.Token,
},