mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Don't return 1 when flags don't parse for status command, as all other errors return 2; 1 is for when the vault is sealed
This commit is contained in:
@@ -17,7 +17,7 @@ func (c *StatusCommand) Run(args []string) int {
|
||||
flags := c.Meta.FlagSet("status", FlagSetDefault)
|
||||
flags.Usage = func() { c.Ui.Error(c.Help()) }
|
||||
if err := flags.Parse(args); err != nil {
|
||||
return 1
|
||||
return 2
|
||||
}
|
||||
|
||||
client, err := c.Client()
|
||||
|
||||
Reference in New Issue
Block a user