demo/arg_parser_demo.cc
changeset 1165 e0ccc1f0268f
parent 842 c2ff0a365245
equal deleted inserted replaced
8:f3483164ed5e 9:8d80b0c93a9a
     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
    67 
    67 
    68   // Throw an exception when problems occurs. The default behavior is to
    68   // Throw an exception when problems occurs. The default behavior is to
    69   // exit(1) on these cases, but this makes Valgrind falsely warn
    69   // exit(1) on these cases, but this makes Valgrind falsely warn
    70   // about memory leaks.
    70   // about memory leaks.
    71   ap.throwOnProblems();
    71   ap.throwOnProblems();
    72   
    72 
    73   // Perform the parsing process
    73   // Perform the parsing process
    74   // (in case of any error it terminates the program)
    74   // (in case of any error it terminates the program)
    75   // The try {} construct is necessary only if the ap.trowOnProblems()
    75   // The try {} construct is necessary only if the ap.trowOnProblems()
    76   // setting is in use.
    76   // setting is in use.
    77   try {
    77   try {