 }
 
 int main(int argc, char** argv) {
+  int width = 640, height = 480;
+  double lowerX = -2, upperX = 2;
+  double lowerY = -2, upperY = 2;
+  int maxThreads = 1;
+  char filename[100] = "fractal.png";
+  bool quiet = false;
+
   char *svalue = NULL, *rvalue = NULL, *tvalue = NULL, *filenameArg = NULL;
-  bool quiet = false;
   int c;
   static struct option long_options[] =
       {

#include <cuComplex.h>
#include <iostream>
#include <getopt.h>
#include "offset.h"
#include "bitmap.h"
#include "png_writer.h"

        abort();
    }

  if (svalue != NULL)
    sscanf(svalue, "%dx%d", &width, &height);
  if (rvalue != NULL)
    sscanf(rvalue, "%lf:%lf:%lf:%lf", &lowerX, &upperX, &lowerY, &upperY);
  if (tvalue != NULL)
    sscanf(tvalue, "%d", &maxThreads);
  if (filenameArg != NULL)
    sscanf(filenameArg, "%s", filename);
  printf("svalue = %s;%dx%d\nrvalue = %s; %lf, %lf, %lf, %lf\n", svalue, width, height, rvalue, lowerX, upperX, lowerY, upperY);
  printf("tvalue = %s; %d\n", tvalue, maxThreads);
  printf("filenameArg = %s; %s\n", filenameArg, filename);
  printf("quiet = %d\n", quiet);

