Commit 35f57e63 authored by Edlira Nano's avatar Edlira Nano
Browse files

added filename in cin

git-svn-id: https://subversion.renater.fr/masschroq/trunk@2084 e4b6dbb4-9209-464b-83f7-6257456c460c
parent a0e04ed6
...@@ -100,14 +100,16 @@ int main(int argc, char **argv) { ...@@ -100,14 +100,16 @@ int main(int argc, char **argv) {
} }
break; break;
case 1 : case 1 :
cerr << "masschroq : missing input filename." << endl; cout << "Type the masschroqML file name to analyse" << endl;
cerr << "Try 'masschroq --help' for more information." << endl; std::string filename;
return 1; std::getline(std::cin, filename);
fileName = filename.c_str();
//return 1;
break; break;
default : // default :
cerr << "masschroq : invalid use." << endl; // cerr << "masschroq : invalid use." << endl;
cerr << "Try 'masschroq --help' for more information." << endl; //cerr << "Try 'masschroq --help' for more information." << endl;
return 1; //return 1;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment