Skip to content

Commit cbf61e1

Browse files
author
Jan Synacek
committed
arping,doc: fix documentation of -I
Also, give a less misleading error when a device cannot be automatically determined and has to be specified by the user using the -I option.
1 parent 911cb11 commit cbf61e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arping.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ main(int argc, char **argv)
10861086
fprintf(stderr, "arping: Device %s not available.\n", device.name);
10871087
exit(2);
10881088
}
1089-
fprintf(stderr, "arping: device (option -I) is required.\n");
1089+
fprintf(stderr, "arping: Suitable device could not be determined. Please, use option -I.\n");
10901090
usage();
10911091
}
10921092

doc/arping.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<arg choice="opt">-c <replaceable/count/</arg>
2020
<arg choice="opt">-w <replaceable/deadline/</arg>
2121
<arg choice="opt">-s <replaceable/source/</arg>
22-
<arg choice="req">-I <replaceable/interface/</arg>
22+
<arg choice="opt">-I <replaceable/interface/</arg>
2323
<arg choice="req"><replaceable/destination/</arg>
2424
</cmdsynopsis>
2525
</refsynopsisdiv>

0 commit comments

Comments
 (0)