aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Hawthorn <jhawthor@uvic.ca>2008-06-25 12:51:45 -0700
committerJohn Hawthorn <jhawthor@uvic.ca>2008-06-25 12:51:45 -0700
commit88da9aa578b2fd73f6d3be48e590038e64a1266a (patch)
treed2c51d2d47cfaf7c3e1afbffdf6693018e63352b /src
parent70fb2744602b95b865e19990bceebd5a86d54b85 (diff)
downloadmirror-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.c20
1 files 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;