lemon/arg_parser.cc
changeset 1167 7c86f14b3bc5
parent 842 c2ff0a365245
child 1172 d7e25df22e88
equal deleted inserted replaced
9:5f0b3d7c53ba 10:22a4c1add208
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     2  *
     2  *
     3  * This file is a part of LEMON, a generic C++ optimization library.
     3  * This file is a part of LEMON, a generic C++ optimization library.
     4  *
     4  *
     5  * Copyright (C) 2003-2009
     5  * Copyright (C) 2003-2010
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     8  *
     8  *
     9  * Permission to use, modify and distribute this software is granted
     9  * Permission to use, modify and distribute this software is granted
    10  * provided that this copyright notice appears in all copies. For
    10  * provided that this copyright notice appears in all copies. For
    24   {
    24   {
    25     if(_exit_on_problems)
    25     if(_exit_on_problems)
    26       exit(1);
    26       exit(1);
    27     else throw(ArgParserException(reason));
    27     else throw(ArgParserException(reason));
    28   }
    28   }
    29   
    29 
    30   
    30 
    31   void ArgParser::_showHelp(void *p)
    31   void ArgParser::_showHelp(void *p)
    32   {
    32   {
    33     (static_cast<ArgParser*>(p))->showHelp();
    33     (static_cast<ArgParser*>(p))->showHelp();
    34     (static_cast<ArgParser*>(p))->_terminate(ArgParserException::HELP);
    34     (static_cast<ArgParser*>(p))->_terminate(ArgParserException::HELP);
    35   }
    35   }