ansilove

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

commit a46f95ca27c2964837f76293e28d91b76031370f
parent a0a225256de0690a7f3c5d2cac443a20bc48c70c
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Thu,  3 Sep 2015 23:45:52 +0200

 Do not use '-i' option anymore to specify input file name, use optind instead

Diffstat:
Msrc/main.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -124,7 +124,7 @@ int main(int argc, char *argv[]) char *input = NULL, *output = NULL; char *retinaout = NULL; - while ((getoptFlag = getopt(argc, argv, "b:c:ef:hi:m:o:rsv")) != -1) { + while ((getoptFlag = getopt(argc, argv, "b:c:ef:him:o:rsv")) != -1) { switch(getoptFlag) { case 'b': bits = optarg; @@ -142,7 +142,7 @@ int main(int argc, char *argv[]) showHelp(); return EXIT_SUCCESS; case 'i': - input = optarg; + // TODO : Implement iCE Colors on/off toggle break; case 'm': mode = optarg; @@ -162,6 +162,8 @@ int main(int argc, char *argv[]) } } + input = argv[optind]; + argc -= optind; argv += optind;