Skip to content

Commit

Permalink
Fix command usage docs (#364)
Browse files Browse the repository at this point in the history
minor fixes like spaces and punctuation

Signed-off-by: Wouter Koorn <[email protected]>
Co-authored-by: Alexander Scheel <[email protected]>
  • Loading branch information
Wouterkoorn and cipherboy committed Jun 17, 2024
1 parent 8499e4e commit 553d045
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions command/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,15 @@ func (c *BaseCommand) flagSet(bit FlagSetBit) *FlagSets {
Default: false,
EnvVar: api.EnvVaultDisableRedirects,
Usage: "Disable the default client behavior, which honors a single " +
"redirect response from a request",
"redirect response from a request.",
})

f.BoolVar(&BoolVar{
Name: "policy-override",
Target: &c.flagPolicyOverride,
Default: false,
Usage: "Override a Sentinel policy that has a soft-mandatory " +
"enforcement_level specified",
"enforcement_level specified.",
})

f.DurationVar(&DurationVar{
Expand Down Expand Up @@ -501,8 +501,8 @@ func (c *BaseCommand) flagSet(bit FlagSetBit) *FlagSets {
Name: "header",
Target: &c.flagHeader,
Completion: complete.PredictAnything,
Usage: "Key-value pair provided as key=value to provide http header added to any request done by the CLI." +
"Trying to add headers starting with 'X-Vault-' is forbidden and will make the command fail " +
Usage: "Key-value pair provided as key=value to provide http header added to any request done by the CLI. " +
"Trying to add headers starting with 'X-Vault-' is forbidden and will make the command fail. " +
"This can be specified multiple times.",
})

Expand Down Expand Up @@ -550,7 +550,7 @@ func (c *BaseCommand) flagSet(bit FlagSetBit) *FlagSets {
Target: &c.flagDetailed,
Default: false,
EnvVar: EnvVaultDetailed,
Usage: "Enables additional metadata during some operations",
Usage: "Enables additional metadata during some operations.",
})
}
}
Expand Down

0 comments on commit 553d045

Please sign in to comment.