- Timestamp:
- Aug 31, 2007, 11:40:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.6-stable/bin/Parameter.cc
r430 r469 2 2 3 3 /* 4 Copyright (C) 2006, 2007 Jari H äkkinen, Peter Johansson4 Copyright (C) 2006, 2007 Jari Häkkinen, Peter Johansson 5 5 6 6 This file is part of svndigest, http://trac.thep.lu.se/trac/svndigest … … 43 43 for (int i=1; i<argc; ++i) { 44 44 bool ok=false; 45 std::string myargv(argv[i]); 45 std::stringstream ss(argv[i]); 46 std::string myargv(""); 47 std::string value(""); 48 getline(ss, myargv, '='); 49 getline(ss, value); 50 46 51 if (myargv=="--config-file"){ 47 if (++i<argc){ 52 if (value.size()) { 53 config_file_= value; 54 ok=true; 55 } 56 else if (++i<argc){ 48 57 config_file_= std::string(argv[i]); 49 58 ok=true; … … 67 76 } 68 77 else if (myargv=="-r" || myargv=="--root"){ 69 if (++i<argc){ 78 if (value.size()) { 79 root_= value; 80 ok=true; 81 } 82 else if (++i<argc){ 70 83 root_= std::string(argv[i]); 71 84 ok=true; … … 77 90 } 78 91 else if (myargv=="-t" || myargv=="--target"){ 79 if (++i<argc){ 92 if (value.size()) { 93 targetdir_= value; 94 ok=true; 95 } 96 else if (++i<argc){ 80 97 targetdir_= std::string(argv[i]); 81 98 ok=true; … … 209 226 cs.width(0)=79; 210 227 cs << PACKAGE_STRING 211 << "\nCopyright (C) 2007 Jari H äkkinen and Peter Johansson.\n\n"228 << "\nCopyright (C) 2007 Jari Häkkinen and Peter Johansson.\n\n" 212 229 << "This is free software; see the source for copying conditions. " 213 230 << "There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR "
Note: See TracChangeset
for help on using the changeset viewer.