# HG changeset patch # User meillo@marmaro.de # Date 1180370629 -7200 # Node ID 8d8b41f7c0bc65f61a396ee581d47569bfd22e3b # Parent 21d9547ef242b6842263732385cd742ef551ec4f added --help to the cpp edition diff -r 21d9547ef242 -r 8d8b41f7c0bc graph Binary file graph has changed diff -r 21d9547ef242 -r 8d8b41f7c0bc graph.cpp --- 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] << " " << 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]); }