Changeset 209:765619b7cbb2 in lemon-1.0 for demo/arg_parser_demo.cc
- Timestamp:
- 07/13/08 20:51:02 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
demo/arg_parser_demo.cc
r204 r209 1 /* -*- C++-*-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 5 * Copyright (C) 2003-2008 … … 65 65 ap.other("infile", "The input file.") 66 66 .other("..."); 67 67 68 68 // Perform the parsing process 69 69 // (in case of any error it terminates the program) … … 85 85 if(ap.given("grb")) std::cout << " -grb is given\n"; 86 86 if(ap.given("grc")) std::cout << " -grc is given\n"; 87 87 88 88 switch(ap.files().size()) { 89 89 case 0: … … 95 95 default: 96 96 std::cout << " " 97 97 << ap.files().size() << " file arguments were given. They are:\n"; 98 98 } 99 99 for(unsigned int i=0;i<ap.files().size();++i) 100 100 std::cout << " '" << ap.files()[i] << "'\n"; 101 101 102 102 return 0; 103 103 }
Note: See TracChangeset
for help on using the changeset viewer.