diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-09-25 16:21:38 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-09-25 16:21:38 +0000 |
commit | 284286004e024dd240cc08d84ebd8b6748d311c8 (patch) | |
tree | e8fcd489e28c5bb8dee70d340099c8095938b393 /src/_usage.c | |
parent | 17f430c0b911ef243599b0dc7388b166d5365539 (diff) |
Add support for describing the options in the C programs.
Diffstat (limited to 'src/_usage.c')
-rw-r--r-- | src/_usage.c | 3 |
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); } |