commit 03b6c7399327cb70fbbc8761dd3cfbf9b09e705a
parent 4a498129053a4ed29fe08bc4df126566f66fed4b
Author: Frederic Cambus <fred@statdns.com>
Date: Wed, 12 Dec 2018 19:40:39 +0100
Remove -e switch, examples will be listed in the man page instead
Diffstat:
2 files changed, 1 insertion(+), 24 deletions(-)
diff --git a/ansilove.1 b/ansilove.1
@@ -32,7 +32,7 @@
.Nd ANSI / ASCII art to PNG converter
.Sh SYNOPSIS
.Nm
-.Op Fl ehirsv
+.Op Fl hirsv
.Op Fl b Ar bits
.Op Fl c Ar columns
.Op Fl f Ar font
@@ -57,8 +57,6 @@ The options are as follows:
Set to 9 to render 9th column of block characters (default: 8)
.It Fl c Ar columns
Adjust number of columns for ANSI, BIN, and TND files
-.It Fl e
-Print a list of examples
.It Fl f Ar font
Select font for supported formats.
.Pp
diff --git a/src/main.c b/src/main.c
@@ -34,25 +34,8 @@
#include "strtolower.h"
/* prototypes */
-static void listExamples(void);
static void synopsis(void);
-static void
-listExamples(void)
-{
- fprintf(stderr, "\nEXAMPLES:\n");
- fprintf(stderr, " ansilove file.ans (output path/name identical to input, no options)\n"
- " ansilove -i file.ans (enable iCE colors)\n"
- " ansilove -r file.ans (adds Retina @2x output file)\n"
- " ansilove -R 3 file.ans (adds Retina @3x output file)\n"
- " ansilove -o dir/file.png file.ans (custom path/name for output)\n"
- " ansilove -s file.bin (just display SAUCE record, don't generate output)\n"
- " ansilove -m transparent file.ans (render with transparent background)\n"
- " ansilove -f amiga file.txt (custom font)\n"
- " ansilove -f 80x50 -b 9 -c 320 -i file.bin (font, bits, columns, icecolors)\n"
- "\n");
-}
-
/* following the IEEE Std 1003.1 for utility conventions */
static void
synopsis(void)
@@ -64,7 +47,6 @@ synopsis(void)
" -b bits set to 9 to render 9th column of block characters (default: 8)\n"
" -c columns adjust number of columns for BIN files (default: 160)\n"
" -d use DOS aspect ratio\n"
- " -e print a list of examples\n"
" -f font select font (default: 80x25)\n"
" -h show help\n"
" -i enable iCE colors\n"
@@ -138,9 +120,6 @@ main(int argc, char *argv[])
case 'd':
options.dos = true;
break;
- case 'e':
- listExamples();
- return EXIT_SUCCESS;
case 'f':
font = optarg;
for (size_t loop = 0; loop < FONTS; loop++) {