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 diff
     1.1 Binary file graph has changed
     2.1 --- a/graph.cpp	Mon May 28 17:41:28 2007 +0200
     2.2 +++ b/graph.cpp	Mon May 28 18:43:49 2007 +0200
     2.3 @@ -148,6 +148,20 @@
     2.4            cout << "====================" << endl;
     2.5            cout << "by Julian Forster (and a little bit by Markus Schnalke)" << endl;
     2.6            cout << "http://progmaschine.de.vu" << endl;
     2.7 +        } else if (strcmp(argv[1], "--help") == 0) {
     2.8 +          cout << "Buddylistgrapher 2.0" << endl;
     2.9 +          cout << "====================" << endl;
    2.10 +          cout << "usage: " << argv[0] << " <input.txt>" << endl;
    2.11 +          cout << endl;
    2.12 +          cout << "The grapher generates output to stdout." << endl;
    2.13 +          cout << "This output is the input for the graphviz tools." << endl;
    2.14 +          cout << endl;
    2.15 +          cout << "You can use it like this:" << endl;
    2.16 +          cout << argv[0] << " input.txt | dot -Tpng > pic.png" << endl;
    2.17 +          cout << endl;
    2.18 +          cout << "ToDo:" << endl;
    2.19 +          cout << "The program was written for one specific kind of input data," << endl;
    2.20 +          cout << "so there is still some work to do to use it for general input." << endl;
    2.21          } else {
    2.22            readGraph(argv[1]); 
    2.23          }