diff options
author | John Hawthorn <jhawthor@uvic.ca> | 2008-06-25 12:51:45 -0700 |
---|---|---|
committer | John Hawthorn <jhawthor@uvic.ca> | 2008-06-25 12:51:45 -0700 |
commit | 88da9aa578b2fd73f6d3be48e590038e64a1266a (patch) | |
tree | d2c51d2d47cfaf7c3e1afbffdf6693018e63352b /src | |
parent | 70fb2744602b95b865e19990bceebd5a86d54b85 (diff) | |
download | mirror-meh-88da9aa578b2fd73f6d3be48e590038e64a1266a.tar.gz mirror-meh-88da9aa578b2fd73f6d3be48e590038e64a1266a.tar.bz2 mirror-meh-88da9aa578b2fd73f6d3be48e590038e64a1266a.zip |
ready for -list and -ctl
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -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; |