summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 73a764b)
raw | patch | inline | side by side (parent: 73a764b)
author | Sebastian Harl <sh@tokkee.org> | |
Sat, 6 Jun 2009 19:18:23 +0000 (21:18 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 16 Jul 2009 16:52:30 +0000 (18:52 +0200) |
A short description has been added for each option. Also, print the program
version and author.
version and author.
src/oping.c | patch | blob | history |
diff --git a/src/oping.c b/src/oping.c
index 06fb80143f7c7176fffeb7a35555835b209d4676..0ef6ec662dc5213ff6398d9bcb0c2d09d630426f 100644 (file)
--- a/src/oping.c
+++ b/src/oping.c
name_length = (int) strlen (name);
- fprintf (stderr, "Usage: %s [-46] [-c count] [-i interval]\n"
- "%*s[-t ttl] [-I srcaddr]\n"
- "%*s-f filename | host [host [host ...]]\n",
- name,
- 8 + name_length, "",
- 8 + name_length, "");
+ fprintf (stderr, "Usage: %s [OPTIONS] "
+ "-f filename | host [host [host ...]]\n"
+
+ "\nAvailable options:\n"
+ " -4|-6 force the use of IPv4 or IPv6\n"
+ " -c count number of ICMP packets to send\n"
+ " -i interval interval with which to send ICMP packets\n"
+ " -t ttl time to live for each ICMP packet\n"
+ " -I srcaddr source address\n"
+ " -f filename filename to read hosts from\n"
+
+ "\noping "PACKAGE_VERSION", http://verplant.org/liboping/\n"
+ "by Florian octo Forster <octo@verplant.org>\n"
+ "for contributions see `AUTHORS'\n",
+ name);
exit (1);
}