Mercurial > buddylistgrapher
comparison graph.cpp @ 1:8d8b41f7c0bc
added --help to the cpp edition
author | meillo@marmaro.de |
---|---|
date | Mon, 28 May 2007 18:43:49 +0200 |
parents | 21d9547ef242 |
children | 6c327ae23d2c |
comparison
equal
deleted
inserted
replaced
0:21d9547ef242 | 1:8d8b41f7c0bc |
---|---|
146 if (strcmp(argv[1], "--version") == 0) { | 146 if (strcmp(argv[1], "--version") == 0) { |
147 cout << "Buddylistgrapher 2.0" << endl; | 147 cout << "Buddylistgrapher 2.0" << endl; |
148 cout << "====================" << endl; | 148 cout << "====================" << endl; |
149 cout << "by Julian Forster (and a little bit by Markus Schnalke)" << endl; | 149 cout << "by Julian Forster (and a little bit by Markus Schnalke)" << endl; |
150 cout << "http://progmaschine.de.vu" << endl; | 150 cout << "http://progmaschine.de.vu" << endl; |
151 } else if (strcmp(argv[1], "--help") == 0) { | |
152 cout << "Buddylistgrapher 2.0" << endl; | |
153 cout << "====================" << endl; | |
154 cout << "usage: " << argv[0] << " <input.txt>" << endl; | |
155 cout << endl; | |
156 cout << "The grapher generates output to stdout." << endl; | |
157 cout << "This output is the input for the graphviz tools." << endl; | |
158 cout << endl; | |
159 cout << "You can use it like this:" << endl; | |
160 cout << argv[0] << " input.txt | dot -Tpng > pic.png" << endl; | |
161 cout << endl; | |
162 cout << "ToDo:" << endl; | |
163 cout << "The program was written for one specific kind of input data," << endl; | |
164 cout << "so there is still some work to do to use it for general input." << endl; | |
151 } else { | 165 } else { |
152 readGraph(argv[1]); | 166 readGraph(argv[1]); |
153 } | 167 } |
154 return 0; | 168 return 0; |
155 } | 169 } |