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

Contents of /trunk/src/_usage.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2735 - (show annotations) (download) (as text)
Thu Jun 28 15:44:38 2007 UTC (7 years, 2 months ago) by uberlord
File MIME type: text/x-chdr
File size: 457 byte(s)
Add --nocolor to more programs
1 /*
2 * @file _usage.h
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 #define getoptstring_COMMON "Ch"
11 #define longopts_COMMON \
12 { "help", 0, NULL, 'h'}, \
13 { "nocolor", 0, NULL, 'C'},
14
15 #define case_RC_COMMON_GETOPT \
16 case 'C': setenv ("RC_NOCOLOR", "yes", 1); break; \
17 case 'h': usage (EXIT_SUCCESS); \
18 default: usage (EXIT_FAILURE);

  ViewVC Help
Powered by ViewVC 1.1.20