Changeset 10629


Ignore:
Timestamp:
May 9, 2011, 8:12:01 PM (9 years ago)
Author:
tbretz
Message:
Unified help output more.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/fact.cc

    r10518 r10629  
    11#include "FactGui.h"
    22
     3#include "src/FACT.h"
    34#include "src/Configuration.h"
    45
     
    1516{
    1617    cout << "\n"
    17         "The console connects to all available Dim Servers and allows to "
    18         "easily access all of their commands.\n"
     18        "The FACT++ Graphical User Interfact (GUI).\n"
    1919        "\n"
    20         "Usage: test3 [-c type] [OPTIONS]\n"
    21         "  or:  test3 [OPTIONS]\n"
    22         "\n"
    23         "Options:\n"
    24         "The following describes the available commandline options. "
    25         "For further details on how command line option are parsed "
    26         "and in which order which configuration sources are accessed "
    27         "please refer to the class reference of the Configuration class.";
     20        "Usage: fact [-c type] [OPTIONS]\n"
     21        "  or:  fact [OPTIONS]\n";
    2822    cout << endl;
    2923
     
    3226void PrintHelp()
    3327{
    34     cout << "\n"
    35         "The default is that the program is started without user interaction. "
    36         "All actions are supposed to arrive as DimCommands. Using the -c "
    37         "option, a local shell can be initialized. With h or help a short "
    38         "help message about the usuage can be brought to the screen."
    39         << endl;
    40 
    41     /*
    42      cout << "bla bla bla" << endl << endl;
    43      cout << endl;
    44      cout << "Environment:" << endl;
    45      cout << "environment" << endl;
    46      cout << endl;
    47      cout << "Examples:" << endl;
    48      cout << "test exam" << endl;
    49      cout << endl;
    50      cout << "Files:" << endl;
    51      cout << "files" << endl;
    52      cout << endl;
    53      */
     28    /* Additional help text which is printed after the configuration
     29     options goes here */
    5430}
    55 
    56 /*
    57  The first line of the --version information is assumed to be in one
    58  of the following formats:
    59 
    60    <version>
    61    <program> <version>
    62    {GNU,Free} <program> <version>
    63    <program> ({GNU,Free} <package>) <version>
    64    <program> - {GNU,Free} <package> <version>
    65 
    66  and separated from any copyright/author details by a blank line.
    67 
    68  Handle multi-line bug reporting sections of the form:
    69 
    70    Report <program> bugs to <addr>
    71    GNU <package> home page: <url>
    72    ...
    73 */
    74 void PrintVersion(const char *name)
    75 {
    76     cout <<
    77         name << " - "PACKAGE_STRING"\n"
    78         "\n"
    79         "Written by Thomas Bretz et al.\n"
    80         "\n"
    81         "Report bugs to <"PACKAGE_BUGREPORT">\n"
    82         "Home page: "PACKAGE_URL"\n"
    83         "\n"
    84         "Copyright (C) 2011 by the FACT Collaboration.\n"
    85         "This is free software; see the source for copying conditions.\n"
    86         << endl;
    87 }
    88 
    8931
    9032void SetupConfiguration(Configuration &conf)
     
    13072    if (conf.HasVersion())
    13173    {
    132         PrintVersion(argv[0]);
     74        FACT::PrintVersion(argv[0]);
    13375        return -1;
    13476    }
Note: See TracChangeset for help on using the changeset viewer.