Changeset 10630 for trunk/FACT++


Ignore:
Timestamp:
05/09/11 20:12:46 (14 years ago)
Author:
tbretz
Message:
Unified help output more.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/chatserv.cc

    r10507 r10630  
    3737{
    3838    cout <<
    39         "The ftmctrl controls the FTM (FACT Trigger Master) board.\n"
     39        "The chatserv is a Dim-based chat server.\n"
    4040        "\n"
    41         "The default is that the program is started without user intercation. "
    42         "All actions are supposed to arrive as DimCommands. Using the -c "
    43         "option, a local shell can be initialized. With h or help a short "
    44         "help message about the usuage can be brought to the screen.\n"
     41        "It is a non-interactive program which acts as a relay of messages "
     42        "sent via a Dim command CHAT/MSG and which are redirected to the "
     43        "logging service CHAT/MESSAGE.\n"
    4544        "\n"
    46         "Usage: ftmctrl [-c type] [OPTIONS]\n"
    47         "  or:  ftmctrl [OPTIONS]\n"
    48         "\n"
    49         "Options:\n"
    50         "The following describes the available commandline options. "
    51         "For further details on how command line option are parsed "
    52         "and in which order which configuration sources are accessed "
    53         "please refer to the class reference of the Configuration class.";
     45        "Usage: chatserv [OPTIONS]\n"
     46        "  or:  chatserv [OPTIONS]\n"
    5447    cout << endl;
    55 
    5648}
    5749
    5850void PrintHelp()
    5951{
    60 }
    61 
    62 /*
    63  The first line of the --version information is assumed to be in one
    64  of the following formats:
    65 
    66    <version>
    67    <program> <version>
    68    {GNU,Free} <program> <version>
    69    <program> ({GNU,Free} <package>) <version>
    70    <program> - {GNU,Free} <package> <version>
    71 
    72  and separated from any copyright/author details by a blank line.
    73 
    74  Handle multi-line bug reporting sections of the form:
    75 
    76    Report <program> bugs to <addr>
    77    GNU <package> home page: <url>
    78    ...
    79 */
    80 void PrintVersion(const char *name)
    81 {
    82     cout <<
    83         name << " - FACT++ 1.0 - Trigger master control\n"
    84         "\n"
    85         "Written by Thomas Bretz <thomas.bretz@epfl.ch> et al.\n"
    86         "\n"
    87         "Report bugs to Thomas Bretz <thomas.bretz@epfl.ch>\n"
    88         "FACT++ home page: http://www.xxx.com\n"
    89         "\n"
    90         "Copyright (C) 2011 by the FACT Collaboration.\n"
    91         "This is free software; see the source for copying conditions.\n"
    92         << endl;
     52    /* Additional help text which is printed after the configuration
     53     options goes here */
    9354}
    9455
     
    142103    if (conf.HasVersion())
    143104    {
    144         PrintVersion(argv[0]);
     105        FACT::PrintVersion(argv[0]);
    145106        return -1;
    146107    }
Note: See TracChangeset for help on using the changeset viewer.