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 2b23d64002
commit afd0bca03a

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