ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit e238557bfef17688a56e405a0f74bb8066fc7eaf
parent 1df752106bae9bb6aee0332057b2278f0ff5f287
Author: Frederic Cambus <fred@statdns.com>
Date:   Sun, 25 Nov 2018 19:27:33 +0100

Remove showHelp(), show synopsis instead when invoked with -h

Diffstat:
Msrc/main.c | 29+----------------------------
1 file changed, 1 insertion(+), 28 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -34,37 +34,10 @@ #include "strtolower.h" /* prototypes */ -static void showHelp(void); static void listExamples(void); static void synopsis(void); static void -showHelp(void) -{ - fprintf(stderr, "\nSUPPORTED FILE TYPES:\n" - " ANS PCB BIN ADF IDF TND XB\n" - " Files with custom suffix default to the ANSI renderer.\n\n" - "PC FONTS:\n" - " 80x25 icelandic\n" - " 80x50 latin1\n" - " baltic latin2\n" - " cyrillic nordic\n" - " french-canadian portuguese\n" - " greek russian\n" - " greek-869 terminus\n" - " hebrew turkish\n\n" - "AMIGA FONTS:\n" - " amiga topaz\n" - " microknight topaz+\n" - " microknight+ topaz500\n" - " mosoul topaz500+\n" - " pot-noodle\n\n" - "DOCUMENTATION:\n" - " Detailed help is available at the AnsiLove/C repository on GitHub.\n" - " <https:/*github.com/ansilove/ansilove>\n\n"); -} - -static void listExamples(void) { fprintf(stderr, "\nEXAMPLES:\n"); @@ -178,7 +151,7 @@ main(int argc, char *argv[]) } break; case 'h': - showHelp(); + synopsis(); return EXIT_SUCCESS; case 'i': options.icecolors = true;