diff options
author | Jan Synacek <jsynacek@redhat.com> | 2016-09-09 14:42:49 +0200 |
---|---|---|
committer | Jan Synacek <jsynacek@redhat.com> | 2016-09-09 14:44:14 +0200 |
commit | cbf61e1588048fe655b8228407fbb10973da7b5f (patch) | |
tree | 1e066e2278ac05bdcf416a5bee99c81931d74316 | |
parent | 911cb11a8108f35b732d3affd4df33eacb1429f5 (diff) | |
download | iputils-cbf61e1588048fe655b8228407fbb10973da7b5f.tar.gz |
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.
-rw-r--r-- | arping.c | 2 | ||||
-rw-r--r-- | doc/arping.sgml | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1086,7 +1086,7 @@ main(int argc, char **argv) fprintf(stderr, "arping: Device %s not available.\n", device.name); exit(2); } - fprintf(stderr, "arping: device (option -I) is required.\n"); + fprintf(stderr, "arping: Suitable device could not be determined. Please, use option -I.\n"); usage(); } diff --git a/doc/arping.sgml b/doc/arping.sgml index d89b898..b23aaac 100644 --- a/doc/arping.sgml +++ b/doc/arping.sgml @@ -19,7 +19,7 @@ <arg choice="opt">-c <replaceable/count/</arg> <arg choice="opt">-w <replaceable/deadline/</arg> <arg choice="opt">-s <replaceable/source/</arg> -<arg choice="req">-I <replaceable/interface/</arg> +<arg choice="opt">-I <replaceable/interface/</arg> <arg choice="req"><replaceable/destination/</arg> </cmdsynopsis> </refsynopsisdiv> |