Commit bb4b904
authored
tools - traffic_ctl, traffic_layout: use ArgParse groups to handle mutually exclusive options. (#12623)
* tools - traffic_ctl, traffic_layout: use ArgParse groups to handle
mutually exclusive options.
traffic_ctl:
Usage: traffic_ctl [OPTIONS] CMD [ARGS ...]
Commands ---------------------- Description -----------------------
drain Drain the requests
Options ======================= Default ===== Description =============
Group (drain_mode)
-N, --no-new-connection Wait for new connections down to threshold before starting draining
-U, --undo Recover server from the drain mode
traffic_layout:
Usage: traffic_layout CMD [OPTIONS]
Commands ---------------------- Description -----------------------
info Show the layout as default
Options ======================= Default ===== Description =============
-j, --json Produce output in JSON format (when supported)
Group (display_mode)
--features Show the compiled features
--versions Show various library and other versioning information1 parent 40b99c7 commit bb4b904
2 files changed
Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
191 | 195 | | |
192 | 196 | | |
193 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
0 commit comments