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:
Jeff Mitchell 2016-01-29 10:53:56 -05:00
parent b8ca0cccb8
commit 7cf93c0e37
1 changed files with 1 additions and 1 deletions

View File

@ -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()