Skip to content

Commit 740e983

Browse files
committed
fix(ifdata): Temporary fix for -pn being parsed as -pN
1 parent dda1104 commit 740e983

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

cmd/ifdata/formatter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const (
1111
fmtPrint // -p
1212
fmtPrintExists // -pe
1313
fmtAddress // -pa
14-
fmtNetmask // -pn
1514
fmtNetworkAddress // -pN
15+
fmtNetmask // -pn
1616
fmtBroadcastAddress // -pb
1717
fmtMTU // -pm
1818
fmtFlags // -pf

cmd/ifdata/formatter_string.go

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/ifdata.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ ifdata [flags] interface
1414
-p Prints out the whole configuration of the interface
1515
-pe Prints "yes" or "no" if the interface exists or not
1616
-pa Prints the IP address of the interface
17-
-pn Prints the netmask of the interface
1817
-pN Prints the network address of the interface
18+
-pn Prints the netmask of the interface
1919
-pb Prints the broadcast address of the interface
2020
-pm Prints the MTU of the interface
2121
-pf Prints the hardware address of the interface. Exit with a failure exit code if there is not hardware address for the given network interface

0 commit comments

Comments
 (0)