# Changeset 10629

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

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

 r10518 #include "FactGui.h" #include "src/FACT.h" #include "src/Configuration.h" { cout << "\n" "The console connects to all available Dim Servers and allows to " "easily access all of their commands.\n" "The FACT++ Graphical User Interfact (GUI).\n" "\n" "Usage: test3 [-c type] [OPTIONS]\n" "  or:  test3 [OPTIONS]\n" "\n" "Options:\n" "The following describes the available commandline options. " "For further details on how command line option are parsed " "and in which order which configuration sources are accessed " "please refer to the class reference of the Configuration class."; "Usage: fact [-c type] [OPTIONS]\n" "  or:  fact [OPTIONS]\n"; cout << endl; void PrintHelp() { cout << "\n" "The default is that the program is started without user interaction. " "All actions are supposed to arrive as DimCommands. Using the -c " "option, a local shell can be initialized. With h or help a short " "help message about the usuage can be brought to the screen." << endl; /* cout << "bla bla bla" << endl << endl; cout << endl; cout << "Environment:" << endl; cout << "environment" << endl; cout << endl; cout << "Examples:" << endl; cout << "test exam" << endl; cout << endl; cout << "Files:" << endl; cout << "files" << endl; cout << endl; */ /* Additional help text which is printed after the configuration options goes here */ } /* The first line of the --version information is assumed to be in one of the following formats: {GNU,Free} ({GNU,Free} ) - {GNU,Free} and separated from any copyright/author details by a blank line. Handle multi-line bug reporting sections of the form: Report bugs to GNU home page: ... */ void PrintVersion(const char *name) { cout << name << " - "PACKAGE_STRING"\n" "\n" "Written by Thomas Bretz et al.\n" "\n" "Report bugs to <"PACKAGE_BUGREPORT">\n" "Home page: "PACKAGE_URL"\n" "\n" "Copyright (C) 2011 by the FACT Collaboration.\n" "This is free software; see the source for copying conditions.\n" << endl; } void SetupConfiguration(Configuration &conf) if (conf.HasVersion()) { PrintVersion(argv[0]); FACT::PrintVersion(argv[0]); return -1; }
Note: See TracChangeset for help on using the changeset viewer.