Skip to content

Commit acfab74

Browse files
authored
LocalIP: document show-mtu and show-speed command line options (#1318)
Also add these options to shell completions.
1 parent 24c3f0d commit acfab74

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

completions/fastfetch.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ __fastfetch_completion()
185185
"--localip-show-ipv6"
186186
"--localip-show-flags"
187187
"--localip-show-loop"
188+
"--localip-show-mtu"
189+
"--localip-show-speed"
188190
"--localip-name-prefix"
189191
"--localip-compact-type"
190192
"--escape-bedrock"

src/data/help.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,24 @@
11961196
"default": false
11971197
}
11981198
},
1199+
{
1200+
"long": "localip-show-mtu",
1201+
"desc": "Show net interface's MTU (Maximum Transmission Unit) size in bytes",
1202+
"arg": {
1203+
"type": "bool",
1204+
"optional": true,
1205+
"default": false
1206+
}
1207+
},
1208+
{
1209+
"long": "localip-show-speed",
1210+
"desc": "Show net interface's link speed with human-readable format (or an 1Mb units integer in JSON format)",
1211+
"arg": {
1212+
"type": "bool",
1213+
"optional": true,
1214+
"default": false
1215+
}
1216+
},
11991217
{
12001218
"long": "localip-show-prefix-len",
12011219
"desc": "Show network prefix length (/N) in local ip module",

0 commit comments

Comments
 (0)