Skip to content

Commit

Permalink
oauth2-client get client: fix example --json option
Browse files Browse the repository at this point in the history
The --json option does not exist in the current version of hydra. The --format json option had been added in place of the --json option.
However, the --json option was left in the example.
So, I fixed it.
  • Loading branch information
kangaechu committed Apr 21, 2023
1 parent ca85a17 commit 3236557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cmd_get_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func NewGetClientsCmd() *cobra.Command {
Long: `This command gets all the details about an OAuth 2.0 Client. You can use this command in combination with jq.`,
Example: `To get the OAuth 2.0 Client's secret, run:
{{ .CommandPath }} <your-client-id> --json | jq -r '.client_secret'`,
{{ .CommandPath }} <your-client-id> --format json | jq -r '.client_secret'`,
RunE: func(cmd *cobra.Command, args []string) error {
m, _, err := cliclient.NewClient(cmd)
if err != nil {
Expand Down

0 comments on commit 3236557

Please sign in to comment.