Parent Directory
|
Revision Log
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 |