Mercurial > buddylistgrapher
comparison graph.cpp @ 2:6c327ae23d2c
added --help to shell edition
some cleanups
author | meillo@marmaro.de |
---|---|
date | Mon, 28 May 2007 20:03:27 +0200 |
parents | 8d8b41f7c0bc |
children |
comparison
equal
deleted
inserted
replaced
1:8d8b41f7c0bc | 2:6c327ae23d2c |
---|---|
142 | 142 |
143 | 143 |
144 int main(int argc, char **argv){ | 144 int main(int argc, char **argv){ |
145 if (argc == 2) { | 145 if (argc == 2) { |
146 if (strcmp(argv[1], "--version") == 0) { | 146 if (strcmp(argv[1], "--version") == 0) { |
147 cout << "Buddylistgrapher 2.0" << endl; | 147 cout << "Buddylistgrapher (C++)" << endl; |
148 cout << "====================" << endl; | 148 cout << "======================" << endl; |
149 cout << "by Julian Forster (and a little bit by Markus Schnalke)" << endl; | 149 cout << "version 2.0" << endl; |
150 cout << "http://progmaschine.de.vu" << endl; | 150 cout << endl; |
151 cout << "by Julian Forster (http://progmaschine.de.vu)" << endl; | |
152 cout << "and a little bit by Markus Schnalke (http://prog.marmaro.de)" << endl; | |
151 } else if (strcmp(argv[1], "--help") == 0) { | 153 } else if (strcmp(argv[1], "--help") == 0) { |
152 cout << "Buddylistgrapher 2.0" << endl; | 154 cout << "Buddylistgrapher" << endl; |
153 cout << "====================" << endl; | 155 cout << "================" << endl; |
156 cout << endl; | |
154 cout << "usage: " << argv[0] << " <input.txt>" << endl; | 157 cout << "usage: " << argv[0] << " <input.txt>" << endl; |
155 cout << endl; | 158 cout << endl; |
156 cout << "The grapher generates output to stdout." << endl; | 159 cout << "The grapher generates output to stdout." << endl; |
157 cout << "This output is the input for the graphviz tools." << endl; | 160 cout << "This output is the input for the graphviz tools." << endl; |
158 cout << endl; | 161 cout << endl; |