Skip to content

Commit

Permalink
fix: bearer cli flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Lodek committed Jul 23, 2024
1 parent 3bf4d8f commit 999485f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions x/acp/client/cli/query_filter_relationships.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func CmdQueryFilterRelationships() *cobra.Command {
cmd := &cobra.Command{
Use: "relationships [policy-id] [object] [relation] [subject]",
Use: "filter-relationships [policy-id] [object] [relation] [subject]",
Short: "filters through relationships in a policy",
Long: `Filters thourgh all relationships in a Policy.
Performs a lookup using the object, relation and subject filters.
Expand All @@ -22,7 +22,8 @@ func CmdQueryFilterRelationships() *cobra.Command {
relation := name | *
subject := id | *
Returns`,
Args: cobra.ExactArgs(4),
Args: cobra.ExactArgs(4),
Aliases: []string{"relationships"},
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion x/acp/client/cli/tx_bearer_policy_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func CmdBearerPolicyCmd() *cobra.Command {
Short: "Broadcast a BearerPolicyCommand msg",
}

flags := cmd.Flags()
flags := cmd.PersistentFlags()
flags.String(BearerFlag, "", "specifies the bearer token to be broadcast with the command")

cmd.AddCommand(CmdRegisterObject(bearerDispatcher))
Expand Down

0 comments on commit 999485f

Please sign in to comment.