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:
parent
b8ca0cccb8
commit
7cf93c0e37
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue