Skip to content

Commit 9c15122

Browse files
committed
support short-hand flag for q events
1 parent 9ee95c2 commit 9c15122

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ _`--erc20` flag, if provided, will attempt to fetch user balance of contracts on
3636

3737
```bash
3838
devd query events [height/tx hash] [--filter one] [--filter of_] [--filter these] [--tm-rpc http://localhost:26657]
39-
# devd q events COS...MOS --filter sig --filter seq_
40-
# devd q events 0x...evm
39+
# devd q events COS...MOS -f sig -f seq_
40+
# devd q events 0x...evm -f txHash
4141
# devd q events 10000
4242
```
43+
_`--filter` flags, if provided, will accept events those contain at least one provided criteria_
4344

4445
#### Query ERC20 token information
4546

cmd/query/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func GetQueryTxEventsCommand() *cobra.Command {
123123
}
124124

125125
cmd.Flags().String(flagTmRpc, "", flagTmRpcDesc)
126-
cmd.Flags().StringSlice(flagFilter, []string{}, "filter events, output only events which contains the filter string. If multiple filters are provided, events that contain one of the filters will be output.")
126+
cmd.Flags().StringSliceP(flagFilter, "f", []string{}, "filter events, output only events which contains the filter string. If multiple filters are provided, events that contain one of the filters will be output.")
127127

128128
return cmd
129129
}

constants/varcons.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ package constants
44

55
//goland:noinspection GoSnakeCaseUsage
66
var (
7-
VERSION = "2.4.1"
7+
VERSION = "2.4.2"
88
)

0 commit comments

Comments
 (0)