Commit 1c993f4489b0f61052ea1c1a5b87f8c76fd3267b

Authored by Michał Lenart
1 parent 239ab607

poprawienie buga z nadgorliwym sprawdzaniem parametrów

git-svn-id: svn://svn.nlp.ipipan.waw.pl/morfeusz/morfeusz@124 ff4e3ee1-f430-4e82-ade0-24591c43f1fd
morfeusz/morfeusz_analyzer.cpp
... ... @@ -75,8 +75,8 @@ int main(int argc, const char** argv) {
75 75  
76 76 opt.parse(argc, argv);
77 77  
78   - if (!opt.firstArgs.empty()) {
79   - cerr << "Invalid argument (not bound to any flag): " << *opt.firstArgs[0] << endl;
  78 + if (opt.firstArgs.size() > 1) {
  79 + cerr << "Invalid argument (not bound to any flag): " << *opt.firstArgs[1] << endl;
80 80 return 1;
81 81 }
82 82  
... ...