Skip to content

Commit 3fc9fc8

Browse files
committed
Add protocol filter option
- add -p/--protocol filter for text and JSON output - report unsupported or unimplemented protocols - document the new option
1 parent a404c7b commit 3fc9fc8

File tree

2 files changed

+185
-65
lines changed

2 files changed

+185
-65
lines changed

USAGE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ By default it prints detailed protocol information.
1717
--full Include detailed protocol data (default)
1818
--simple Hide detailed protocol data
1919
--sort Sort globals by interface (omit name field)
20+
--protocol, -p <name> Only show matching protocol
2021
--help Show help
2122
```
2223

@@ -52,6 +53,12 @@ Sorted output without name field:
5253
wayland-info-rs --sort
5354
```
5455

56+
Filter output to a single protocol:
57+
58+
```bash
59+
wayland-info-rs -p wl_seat
60+
```
61+
5562
## Environment
5663

5764
- `WAYLAND_DISPLAY`: If not set, defaults to `wayland-0`.

0 commit comments

Comments
 (0)