mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Merge pull request #251 from DavidWittman/auth-prompt-without-args
Prompt for auth token when no args provided
This commit is contained in:
@@ -49,11 +49,6 @@ func (c *AuthCommand) Run(args []string) int {
|
||||
}
|
||||
|
||||
args = flags.Args()
|
||||
if method == "" && len(args) < 1 {
|
||||
flags.Usage()
|
||||
c.Ui.Error("\nError: auth expects at least one argument")
|
||||
return 1
|
||||
}
|
||||
|
||||
tokenHelper, err := c.TokenHelper()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user