help.cc

Go to the documentation of this file.
00001 #include "config.h"
00002 
00003 #include <iostream>
00004 #include <string>
00005 
00006 #include "asserts.h"
00007 #include "error.h"
00008 #include "help.h"
00009 
00010 void print_help(void)
00011 {
00012         std::string text;
00013         
00014         TRY_nomem(text = "Usage: ");
00015         TRY_nomem(text += PACKAGE);
00016         TRY_nomem(text += "[ --archive | --relink | --help | --version | ");
00017         TRY_nomem(text += "--check-config ]");
00018         TRY_nomem(text += "\n");
00019 
00020         TRY_nomem(text += "           [ --timestamp <timestamp> ]");
00021         TRY_nomem(text += "\n");
00022 
00023         TRY_nomem(text += "           [ --no-default-config ]");
00024         TRY_nomem(text += "\n");
00025 
00026         TRY_nomem(text += "           [[ --config <config-file> ] ...]");
00027         TRY_nomem(text += "\n");
00028 
00029         TRY_nomem(text += "           [[ --job <job-file> ] ...]");
00030         TRY_nomem(text += "\n");
00031 
00032         print_version();
00033         std::cout << text << std::endl;
00034 }
00035 
00036 void print_version(void)
00037 {
00038         std::cout << PACKAGE << " version " << VERSION << std::endl;
00039 }
00040 

Generated on Thu Jun 5 11:12:57 2008 for rvm by  doxygen 1.5.1