rvm
1.11
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
help.cc
Go to the documentation of this file.
1
#include "
config.h
"
2
3
#include <iostream>
4
#include <string>
5
6
#include "
asserts.h
"
7
#include "
error.h
"
8
#include "
help.h
"
9
10
void
print_help
(
void
)
11
{
12
std::string text;
13
std::string bumper;
14
15
TRY_nomem
(text =
"Usage: "
);
16
TRY_nomem
(text +=
PACKAGE
);
17
TRY_nomem
(text +=
" "
);
18
19
while
(bumper.length() < text.length()) {
20
bumper +=
" "
;
21
}
22
23
TRY_nomem
(text +=
"[ --archive | --relink | --help | --version | "
);
24
TRY_nomem
(text +=
"--check-config ]"
);
25
TRY_nomem
(text +=
"\n"
);
26
27
TRY_nomem
(text += bumper);
28
TRY_nomem
(text +=
"[ --timestamp <timestamp> ]"
);
29
TRY_nomem
(text +=
"\n"
);
30
31
TRY_nomem
(text += bumper);
32
TRY_nomem
(text +=
"[ --no-default-config ]"
);
33
TRY_nomem
(text +=
"\n"
);
34
35
TRY_nomem
(text += bumper);
36
TRY_nomem
(text +=
"[[ --config <config-file> ] ...]"
);
37
TRY_nomem
(text +=
"\n"
);
38
39
TRY_nomem
(text += bumper);
40
TRY_nomem
(text +=
"[[ --job <job-file> ] ...]"
);
41
TRY_nomem
(text +=
"\n"
);
42
43
print_version
();
44
std::cout << text << std::endl;
45
}
46
47
void
print_version
(
void
)
48
{
49
std::cout <<
PACKAGE
<<
" version "
<<
VERSION
<< std::endl;
50
}
51
asserts.h
VERSION
#define VERSION
Definition:
config.h:214
config.h
print_help
void print_help(void)
Definition:
help.cc:10
error.h
TRY_nomem
#define TRY_nomem(code)
Definition:
error.h:144
help.h
PACKAGE
#define PACKAGE
Definition:
config.h:163
print_version
void print_version(void)
Definition:
help.cc:47
Generated on Thu Aug 6 2015 13:09:16 for rvm by
1.8.6