Use method instead of constructor in Walker
[dueringa_WikiWalker.git] / src / main.cpp
blob3cbf446775e3c88abff159abf069862e74bbf9e0
1 hich one. But they make it very clear that there are two licenses for the project and you get to chich one. But they make it very clear that there are two licenses for the project and you get to chich one. But they make it very clear that there are two licenses for the project and you get to chich one. But they make it very clear that there are two licenses for the project and you get to chich one. But they make it very clear that there are two licenses for the project and you get to c#include <iostream>
2 hich one. But they make it very clear that there are two licenses for the project and you get to c#include "WikiWalker.h"
4 using namespace std;
6 void usage(string exename);
8 int main(int argc, char** argv)
10 if(argc != 2) {
11 usage(argv[0]);
12 return -1;
15 string url = argv[1];
17 try {
18 WikiWalker w = WikiWalker();
19 w.startWalking(url);
20 } catch(std::exception& e) {
21 cout << "Error " << e.what() << endl;
22 return -1;
25 return 0;
28 void usage(string exename)
30 cout << "Usage: " << endl;
31 cout << exename << " [URL]" << endl;