mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
cmomand/read: strip path prefix if necessary. Fixes #343
This commit is contained in:
parent
70ee1866ca
commit
0277cedc8a
1 changed files with 5 additions and 1 deletions
|
|
@ -27,7 +27,11 @@ func (c *ReadCommand) Run(args []string) int {
|
|||
flags.Usage()
|
||||
return 1
|
||||
}
|
||||
|
||||
path := args[0]
|
||||
if path[0] == '/' {
|
||||
path = path[1:]
|
||||
}
|
||||
|
||||
client, err := c.Client()
|
||||
if err != nil {
|
||||
|
|
@ -98,7 +102,7 @@ Read Options:
|
|||
-format=table The format for output. By default it is a whitespace-
|
||||
delimited table. This can also be json.
|
||||
|
||||
-field=field If included, the raw value of the specified field
|
||||
-field=field If included, the raw value of the specified field
|
||||
will be output raw to stdout.
|
||||
|
||||
`
|
||||
|
|
|
|||
Loading…
Reference in a new issue