diff options
author | 2006-11-18 02:24:38 +1000 | |
---|---|---|
committer | 2006-11-18 02:24:38 +1000 | |
commit | 1b71f91a014996d60886885c6fee091e8013d988 (patch) | |
tree | c01b41cc476bd2143677cb053b8cdef5f5ccfd78 /mimedb.c | |
parent | b30886228c546f99f974b64101f6ca164cea25e4 (diff) |
Update documentation display code to run roff on the client system instead of pregenerating documentation and compiling it into program binaries
darcs-hash:20061117162438-ac50b-5c4c7f0bd8bf53a16e16ecfead9569e642b7160f.gz
Diffstat (limited to 'mimedb.c')
-rw-r--r-- | mimedb.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -46,6 +46,7 @@ license. Read the source code of the library for more information. #include "xdgmime.h" #include "fallback.h" #include "util.h" +#include "print_help.h" /** @@ -140,10 +141,6 @@ static int launch_pos=0; */ #define _(string) gettext(string) -/** - Dynamically generated function, made from the documentation in doc_src. -*/ -void print_help(); /** Call malloc, set error flag and print message on failure @@ -1258,7 +1255,7 @@ int main (int argc, char *argv[]) break; case 'h': - print_help(); + print_help( argv[0], 1 ); exit(0); case 'v': @@ -1274,7 +1271,7 @@ int main (int argc, char *argv[]) if( ( output_type == LAUNCH )&&(input_type==MIMETYPE)) { fprintf( stderr, _("%s: Can not launch a mimetype\n"), MIMEDB ); - print_help(); + print_help( argv[0], 2 ); exit(1); } |