+ if(!strcmp(optarg, "auto"))
+ {
+ cellw = 0;
+ cellh = 0;
+ }
+ else if(!strcmp(optarg, "autorect"))
+ {
+ cellw = 0;
+ cellh = 1;
+ }
+ else
+ {
+ cellw = strtol(optarg, &ptr, 0);
+ if(ptr[0]=='x' && isdigit(ptr[1]))
+ cellh = strtol(ptr+1, NULL, 0);
+ }