Mercurial > buddylistgrapher
changeset 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 |
files | graph graph.cpp |
diffstat | 2 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graph.cpp Mon May 28 17:41:28 2007 +0200 +++ b/graph.cpp Mon May 28 18:43:49 2007 +0200 @@ -148,6 +148,20 @@ cout << "====================" << endl; cout << "by Julian Forster (and a little bit by Markus Schnalke)" << endl; cout << "http://progmaschine.de.vu" << endl; + } else if (strcmp(argv[1], "--help") == 0) { + cout << "Buddylistgrapher 2.0" << endl; + cout << "====================" << endl; + cout << "usage: " << argv[0] << " <input.txt>" << endl; + cout << endl; + cout << "The grapher generates output to stdout." << endl; + cout << "This output is the input for the graphviz tools." << endl; + cout << endl; + cout << "You can use it like this:" << endl; + cout << argv[0] << " input.txt | dot -Tpng > pic.png" << endl; + cout << endl; + cout << "ToDo:" << endl; + cout << "The program was written for one specific kind of input data," << endl; + cout << "so there is still some work to do to use it for general input." << endl; } else { readGraph(argv[1]); }