Skip to content
Snippets Groups Projects
dtifitOptions.cc 817 B
/*  dtibayesOptions.cc

    Mark Woolrich, FMRIB Image Analysis Group

    Copyright (C) 1999-2000 University of Oxford  */

/*  CCOPYRIGHT  */

#define WANT_STREAM
#define WANT_MATH

#include <iostream.h>
#include <fstream.h>
#include <stdlib.h>
#include <stdio.h>
#include "dtifitOptions.h"
#include "utils/options.h"
//#include "newmat.h"
using namespace Utilities;

namespace DTIFIT {

dtifitOptions* dtifitOptions::gopt = NULL;

bool dtifitOptions::parse_command_line(int argc, char** argv)
{

  
  for(int a = options.parse_command_line(argc, argv); a < argc; a++)
    ;
  if(help.value() || ! options.check_compulsory_arguments())
    {
      options.usage();
      //throw NEWMAT::Exception("Not all of the compulsory arguments have been provided");
      return false;
    }      
  return true;
}

}