Skip to content
Snippets Groups Projects
pvmfitOptions.cc 809 B
/*  pvmfitOptions.cc

    Saad Jbabdi, FMRIB Image Analysis Group

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

/*  CCOPYRIGHT  */

#define WANT_STREAM
#define WANT_MATH

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

namespace PVMFIT {

pvmfitOptions* pvmfitOptions::gopt = NULL;

bool pvmfitOptions::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;
}

}