summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2012-03-24 10:41:40 +0000
committerRoy Marples <roy@marples.name>2012-03-24 10:41:40 +0000
commitb5de3cec6a33b96d2e96741ce2c195b74a84aee1 (patch)
tree87cf00a3999b03787e213dcd8c799edb6b766ecd /dhcpcd.c
parent63159d3ba667923da9edc2d6ee7b511f5225fd3b (diff)
downloaddhcpcd-b5de3cec6a33b96d2e96741ce2c195b74a84aee1.tar.xz
Fix Dd and Dt arguments.
New sentence, new line. Sort options and option descriptions. Sort SEE ALSO. Use Fl Fl for long options. Sync the usage output by the program with the one from the man page. Thanks to Thomas Klausner.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c27
1 files changed, 18 insertions, 9 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index ad591dcf..c1193f27 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -146,15 +146,24 @@ read_pid(void)
static void
usage(void)
{
- printf("usage: "PACKAGE" [-dgknpqwxyADEGHJKLOTV] [-c script] [-f file]"
- " [-e var=val]\n"
- " [-h hostname] [-i classID ] [-l leasetime]"
- " [-m metric] [-o option]\n"
- " [-r ipaddr] [-s ipaddr] [-t timeout]"
- " [-u userclass]\n"
- " [-F none|ptr|both] [-I clientID] [-C hookscript]"
- " [-Q option]\n"
- " [-X ipaddr] <interface>\n");
+
+printf("usage: "PACKAGE"\t[-ABbDdEGgHJKkLnpqTVw]\n"
+ "\t\t[-C, --nohook hook] [-c, --script script]\n"
+ "\t\t[-e, --env value] [-F, --fqdn FQDN] [-f, --config file]\n"
+ "\t\t[-h, --hostname hostname] [-I, --clientid clientid]\n"
+ "\t\t[-i, --vendorclassid vendorclassid] [-l, --leasetime seconds]\n"
+ "\t\t[-m, --metric metric] [-O, --nooption option]\n"
+ "\t\t[-o, --option option] [-Q, --require option]\n"
+ "\t\t[-r, --request address] [-S, --static value]\n"
+ "\t\t[-s, --inform address[/cidr]] [-t, --timeout seconds]\n"
+ "\t\t[-u, --userclass class] [-v, --vendor code, value]\n"
+ "\t\t[-W, --whitelist address[/cidr]] [-y, --reboot seconds]\n"
+ "\t\t[-X, --blacklist address[/cidr]] [-Z, --denyinterfaces pattern]\n"
+ "\t\t[-z, --allowinterfaces pattern] [interface] [...]\n"
+ " "PACKAGE"\t-k, --release [interface]\n"
+ " "PACKAGE"\t-U, --dumplease interface\n"
+ " "PACKAGE"\t-v, --version\n"
+ " "PACKAGE"\t-x, --exit [interface]\n");
}
static void