From afd0bca03ad00bd57872eb096cb0a89e001c9fce Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Fri, 29 Jan 2016 10:53:56 -0500 Subject: [PATCH] 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 --- command/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/status.go b/command/status.go index 910fde3da7..bc6fafb893 100644 --- a/command/status.go +++ b/command/status.go @@ -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()