aboutsummaryrefslogtreecommitdiff
path: root/src/_usage.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-09-25 16:21:38 +0000
committerMike Frysinger <vapier@gentoo.org>2007-09-25 16:21:38 +0000
commit284286004e024dd240cc08d84ebd8b6748d311c8 (patch)
treee8fcd489e28c5bb8dee70d340099c8095938b393 /src/_usage.c
parent17f430c0b911ef243599b0dc7388b166d5365539 (diff)
Add support for describing the options in the C programs.
Diffstat (limited to 'src/_usage.c')
-rw-r--r--src/_usage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/_usage.c b/src/_usage.c
index 66ae8df0..be41e313 100644
--- a/src/_usage.c
+++ b/src/_usage.c
@@ -16,7 +16,8 @@ static void usage (int exit_status)
#endif
printf ("\n\nOptions: [" getoptstring "]\n");
for (i = 0; longopts[i].name; ++i)
- printf (" -%c, --%s\n", longopts[i].val, longopts[i].name);
+ printf (" -%c, --%-15s %s\n", longopts[i].val, longopts[i].name,
+ longopts_help[i]);
exit (exit_status);
}