buddylistgrapher

diff 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
line diff
     1.1 --- a/graph.cpp	Mon May 28 17:41:28 2007 +0200
     1.2 +++ b/graph.cpp	Mon May 28 18:43:49 2007 +0200
     1.3 @@ -148,6 +148,20 @@
     1.4            cout << "====================" << endl;
     1.5            cout << "by Julian Forster (and a little bit by Markus Schnalke)" << endl;
     1.6            cout << "http://progmaschine.de.vu" << endl;
     1.7 +        } else if (strcmp(argv[1], "--help") == 0) {
     1.8 +          cout << "Buddylistgrapher 2.0" << endl;
     1.9 +          cout << "====================" << endl;
    1.10 +          cout << "usage: " << argv[0] << " <input.txt>" << endl;
    1.11 +          cout << endl;
    1.12 +          cout << "The grapher generates output to stdout." << endl;
    1.13 +          cout << "This output is the input for the graphviz tools." << endl;
    1.14 +          cout << endl;
    1.15 +          cout << "You can use it like this:" << endl;
    1.16 +          cout << argv[0] << " input.txt | dot -Tpng > pic.png" << endl;
    1.17 +          cout << endl;
    1.18 +          cout << "ToDo:" << endl;
    1.19 +          cout << "The program was written for one specific kind of input data," << endl;
    1.20 +          cout << "so there is still some work to do to use it for general input." << endl;
    1.21          } else {
    1.22            readGraph(argv[1]); 
    1.23          }