/[baselayout]/trunk/src/_usage.c
Gentoo

Contents of /trunk/src/_usage.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2734 - (show annotations) (download) (as text)
Thu Jun 28 15:44:14 2007 UTC (7 years, 1 month ago) by uberlord
File MIME type: text/x-csrc
File size: 427 byte(s)
Add --nocolor to more programs
1 /*
2 * @file _usage.c
3 * @brief standardize help/usage output across all our programs
4 * @internal
5 *
6 * Copyright 2007 Gentoo Foundation
7 * Released under the GPLv2
8 */
9
10 static void usage (int exit_status)
11 {
12 int i;
13 printf ("Usage: " APPLET " [options]\n\n");
14 printf ("Options: [" getoptstring "]\n");
15 for (i = 0; longopts[i].name; ++i)
16 printf (" -%c, --%s\n", longopts[i].val, longopts[i].name);
17 exit (exit_status);
18 }

  ViewVC Help
Powered by ViewVC 1.1.20