demo/arg_parser_demo.cc
changeset 209 765619b7cbb2
parent 204 77d56a21c3ab
child 311 c887e703b566
     1.1 --- a/demo/arg_parser_demo.cc	Sun Jul 13 16:46:56 2008 +0100
     1.2 +++ b/demo/arg_parser_demo.cc	Sun Jul 13 19:51:02 2008 +0100
     1.3 @@ -1,6 +1,6 @@
     1.4 -/* -*- C++ -*-
     1.5 +/* -*- mode: C++; indent-tabs-mode: nil; -*-
     1.6   *
     1.7 - * This file is a part of LEMON, a generic C++ optimization library
     1.8 + * This file is a part of LEMON, a generic C++ optimization library.
     1.9   *
    1.10   * Copyright (C) 2003-2008
    1.11   * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    1.12 @@ -64,7 +64,7 @@
    1.13    // Add non-parsed arguments (e.g. input files)
    1.14    ap.other("infile", "The input file.")
    1.15      .other("...");
    1.16 -  
    1.17 +
    1.18    // Perform the parsing process
    1.19    // (in case of any error it terminates the program)
    1.20    ap.parse();
    1.21 @@ -84,7 +84,7 @@
    1.22    if(ap.given("gra")) std::cout << "  -gra is given\n";
    1.23    if(ap.given("grb")) std::cout << "  -grb is given\n";
    1.24    if(ap.given("grc")) std::cout << "  -grc is given\n";
    1.25 -  
    1.26 +
    1.27    switch(ap.files().size()) {
    1.28    case 0:
    1.29      std::cout << "  No file argument was given.\n";
    1.30 @@ -94,10 +94,10 @@
    1.31      break;
    1.32    default:
    1.33      std::cout << "  "
    1.34 -	      << ap.files().size() << " file arguments were given. They are:\n";
    1.35 +              << ap.files().size() << " file arguments were given. They are:\n";
    1.36    }
    1.37    for(unsigned int i=0;i<ap.files().size();++i)
    1.38      std::cout << "    '" << ap.files()[i] << "'\n";
    1.39 -  
    1.40 +
    1.41    return 0;
    1.42  }