2019-02-07 17:26:48 +08:00
|
|
|
#include "cproxy_help.h"
|
|
|
|
|
|
|
|
char help_information(void)
|
|
|
|
{
|
|
|
|
static const char name[] = "cproxy";
|
|
|
|
static const char subject[] = "proxy server";
|
|
|
|
|
|
|
|
static const struct {
|
|
|
|
const char *a, *b, *c, *d;
|
|
|
|
} author = {
|
|
|
|
"aixiao@aixiao.me", "aixiao", "Author:", "Email :",};
|
|
|
|
static const char usage[] =
|
2019-05-09 18:25:42 +08:00
|
|
|
"Usage: [-?hdsc] [-s signal] [-c filename]";
|
2019-02-07 17:26:48 +08:00
|
|
|
|
|
|
|
static const char *s_help[] = {
|
2019-05-09 18:25:42 +08:00
|
|
|
"",
|
|
|
|
"Options:",
|
2019-06-20 09:39:31 +08:00
|
|
|
" -?,-h : help information",
|
|
|
|
" -d : daemon",
|
|
|
|
" -s signal : send signal to a master process: stop",
|
|
|
|
" -c filename : set configuration file (default: conf/cproxy.ini)",
|
2019-02-07 17:26:48 +08:00
|
|
|
"",
|
|
|
|
0
|
|
|
|
};
|
|
|
|
|
2019-04-21 10:41:28 +08:00
|
|
|
|
|
|
|
//fprintf(stderr, "%s %s\n", author.c, author.b);
|
2019-02-07 17:26:48 +08:00
|
|
|
fprintf(stderr, "%s %s\n", name, subject);
|
2019-05-09 18:25:42 +08:00
|
|
|
fprintf(stderr, "%s %s\n", author.c, author.a);
|
|
|
|
fprintf(stderr, "%s\n", usage);
|
2019-02-07 17:26:48 +08:00
|
|
|
|
|
|
|
int l;
|
|
|
|
for (l = 0; s_help[l]; l++) {
|
|
|
|
fprintf(stderr, "%s\n", s_help[l]);
|
|
|
|
}
|
|
|
|
|
|
|
|
BUILD("Compile、link.\n");
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|