From 88da9aa578b2fd73f6d3be48e590038e64a1266a Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Wed, 25 Jun 2008 12:51:45 -0700 Subject: ready for -list and -ctl --- src/main.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index bb8c73f..61a806d 100644 --- a/src/main.c +++ b/src/main.c @@ -183,11 +183,23 @@ void run(){ int main(int argc, char *argv[]){ if(argc < 2) usage(); - xinit(); - images = &argv[1]; - imageslen = argc-1; - imageidx = -1; + if(!strcmp(argv[1], "-ctl")){ + if(argc != 2) + usage(); + printf("not implemented\n"); + exit(1); + }else if(!strcmp(argv[1], "-list")){ + if(argc != 2) + usage(); + printf("not implemented\n"); + exit(1); + }else{ + images = &argv[1]; + imageslen = argc-1; + imageidx = -1; + } + xinit(); run(); return 0; -- cgit v1.2.3