Changeset 10628 for trunk/FACT++
- Timestamp:
- 05/09/11 20:11:42 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/chatclient.cc
r10506 r10628 1 1 #include <boost/filesystem.hpp> 2 2 3 #include "FACT.h" 3 4 #include "Configuration.h" 4 5 #include "ChatClient.h" … … 52 53 { 53 54 cout << "\n" 54 "The console connects to all available Dim Servers and allows to " 55 "easily access all of their commands.\n" 55 "The chatclient is a simple Dim based chatclient.\n" 56 56 "\n" 57 "Usage: test3 [-c type] [OPTIONS]\n" 58 " or: test3 [OPTIONS]\n" 57 "The chatclient is always started with user intercation. " 58 "Just enter a message. It will be broadcasted through the chatserv, " 59 "which need to be running." 59 60 "\n" 60 "Options:\n" 61 "The following describes the available commandline options. " 62 "For further details on how command line option are parsed " 63 "and in which order which configuration sources are accessed " 64 "please refer to the class reference of the Configuration class."; 61 "Usage: chatclient [-c type] [OPTIONS]\n" 62 " or: chatclient [OPTIONS]\n"; 65 63 cout << endl; 66 64 … … 69 67 void PrintHelp() 70 68 { 71 cout << 72 "The default is that the program is started without user intercation. " 73 "All actions are supposed to arrive as DimCommands. Using the -c " 74 "option, a local shell can be initialized. With h or help a short " 75 "help message about the usuage can be brought to the screen." 76 << endl; 77 78 /* 79 cout << "bla bla bla" << endl << endl; 80 cout << endl; 81 cout << "Environment:" << endl; 82 cout << "environment" << endl; 83 cout << endl; 84 cout << "Examples:" << endl; 85 cout << "test exam" << endl; 86 cout << endl; 87 cout << "Files:" << endl; 88 cout << "files" << endl; 89 cout << endl; 90 */ 91 } 92 93 /* 94 The first line of the --version information is assumed to be in one 95 of the following formats: 96 97 <version> 98 <program> <version> 99 {GNU,Free} <program> <version> 100 <program> ({GNU,Free} <package>) <version> 101 <program> - {GNU,Free} <package> <version> 102 103 and separated from any copyright/author details by a blank line. 104 105 Handle multi-line bug reporting sections of the form: 106 107 Report <program> bugs to <addr> 108 GNU <package> home page: <url> 109 ... 110 */ 111 void PrintVersion(const char *name) 112 { 113 string n = boost::filesystem::basename(name); 114 if (n.substr(0, 3)=="lt-") 115 n = n.substr(3); 116 117 cout << 118 n << " - FACT++ 1.0\n" 119 "\n" 120 "Written by Thomas Bretz <thomas.bretz@epfl.ch> et al.\n" 121 "\n" 122 "Report bugs to Thomas Bretz <thomas.bretz@epfl.ch>\n" 123 "FACT++ home page: http://www.xxx.com\n" 124 "\n" 125 "Copyright (C) 2011 by the FACT Collaboration.\n" 126 "This is free software; see the source for copying conditions.\n" 127 << endl; 69 /* Additional help text which is printed after the configuration 70 options goes here */ 128 71 } 129 72 … … 158 101 if (conf.HasVersion()) 159 102 { 160 PrintVersion(argv[0]);103 FACT::PrintVersion(argv[0]); 161 104 return -1; 162 105 }
Note:
See TracChangeset
for help on using the changeset viewer.