diff options
author | Roy Marples <roy@marples.name> | 2007-06-28 15:44:14 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-06-28 15:44:14 +0000 |
commit | 0fdc53d54db27853e87b2d85b8255ebc2d562263 (patch) | |
tree | 75a6393cca89d006ee86cd42f9a217230a0e031c /src/fstabinfo.c | |
parent | 10c3592147d284da4b634dcaa9204ac227143590 (diff) |
Add --nocolor to more programs
Diffstat (limited to 'src/fstabinfo.c')
-rw-r--r-- | src/fstabinfo.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/fstabinfo.c b/src/fstabinfo.c index 15334760..4601c57e 100644 --- a/src/fstabinfo.c +++ b/src/fstabinfo.c @@ -56,13 +56,14 @@ static struct mntent *getmntfile (FILE *fp, const char *file) } #endif -#define getoptstring "f:m:o:p:h" +#include "_usage.h" +#define getoptstring "f:m:o:p:" getoptstring_COMMON static struct option longopts[] = { { "fstype", 1, NULL, 'f'}, { "mountcmd", 1, NULL, 'm'}, { "opts", 1, NULL, 'o'}, { "passno", 1, NULL, 'p'}, - { "help", 0, NULL, 'h'}, + longopts_COMMON { NULL, 0, NULL, 0} }; #include "_usage.c" @@ -139,12 +140,7 @@ int main (int argc, char **argv) } break; - case 'h': - END_ENT; - usage (EXIT_SUCCESS); - default: - END_ENT; - usage (EXIT_FAILURE); + case_RC_COMMON_GETOPT } END_ENT; |