From 83d0f13a68e3a69eee5155d95ea61b2ff0e70eef Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 1 Apr 2015 23:07:49 -0700 Subject: [PATCH] Revert "command/policy" This reverts commit da81ab3b4c813b0c207555b9cdf46c6e67319546. --- command/policy_list.go | 4 ++-- commands.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/command/policy_list.go b/command/policy_list.go index 44f939953f..50f2a0fc22 100644 --- a/command/policy_list.go +++ b/command/policy_list.go @@ -25,7 +25,7 @@ func (c *PolicyListCommand) Run(args []string) int { } else { flags.Usage() c.Ui.Error(fmt.Sprintf( - "\npolicy expects zero or one arguments")) + "\npolicies expects zero or one arguments")) return 1 } } @@ -77,7 +77,7 @@ func (c *PolicyListCommand) Synopsis() string { func (c *PolicyListCommand) Help() string { helpText := ` -Usage: vault policy [options] [name] +Usage: vault policies [options] [name] List the policies that are available or read a single policy. diff --git a/commands.go b/commands.go index 4c14c94c69..a578295b79 100644 --- a/commands.go +++ b/commands.go @@ -43,7 +43,7 @@ func init() { }, nil }, - "policy": func() (cli.Command, error) { + "policies": func() (cli.Command, error) { return &command.PolicyListCommand{ Meta: meta, }, nil