diff --git a/x/acp/client/cli/query_filter_relationships.go b/x/acp/client/cli/query_filter_relationships.go index c140dd2..d85c91a 100644 --- a/x/acp/client/cli/query_filter_relationships.go +++ b/x/acp/client/cli/query_filter_relationships.go @@ -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. @@ -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 { diff --git a/x/acp/client/cli/tx_bearer_policy_cmd.go b/x/acp/client/cli/tx_bearer_policy_cmd.go index ce019f4..a6519f0 100644 --- a/x/acp/client/cli/tx_bearer_policy_cmd.go +++ b/x/acp/client/cli/tx_bearer_policy_cmd.go @@ -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))