Commit 5be60786 authored by Federico G. Schwindt's avatar Federico G. Schwindt Committed by Lasse Karstensen

Normalise help output

Remove extra newlines, add tabs and ending punctuation.

Conflicts:
	bin/varnishd/storage/storage_persistent.c
parent b8a4bb64
...@@ -460,9 +460,8 @@ ccf_listen_address(struct cli *cli, const char * const *av, void *priv) ...@@ -460,9 +460,8 @@ ccf_listen_address(struct cli *cli, const char * const *av, void *priv)
static struct cli_proto vca_cmds[] = { static struct cli_proto vca_cmds[] = {
{ CLI_SERVER_START, "i", ccf_start }, { CLI_SERVER_START, "i", ccf_start },
{ "debug.listen_address", { "debug.listen_address", "debug.listen_address",
"debug.listen_address", "\tReport the actual listen address.", 0, 0,
"Report the actual listen address\n", 0, 0,
"d", ccf_listen_address, NULL }, "d", ccf_listen_address, NULL },
{ NULL } { NULL }
}; };
......
...@@ -430,7 +430,7 @@ vbp_health(struct cli *cli, const char * const *av, void *priv) ...@@ -430,7 +430,7 @@ vbp_health(struct cli *cli, const char * const *av, void *priv)
static struct cli_proto debug_cmds[] = { static struct cli_proto debug_cmds[] = {
{ "debug.health", "debug.health", { "debug.health", "debug.health",
"\tDump backend health stuff\n", "\tDump backend health information.",
0, 0, "d", vbp_health }, 0, 0, "d", vbp_health },
{ NULL } { NULL }
}; };
......
...@@ -223,10 +223,10 @@ static struct cli_proto master_cmds[] = { ...@@ -223,10 +223,10 @@ static struct cli_proto master_cmds[] = {
{ CLI_PING, "i", VCLS_func_ping }, { CLI_PING, "i", VCLS_func_ping },
{ CLI_HELP, "i", VCLS_func_help }, { CLI_HELP, "i", VCLS_func_help },
{ "debug.sizeof", "debug.sizeof", { "debug.sizeof", "debug.sizeof",
"\tDump sizeof various data structures\n", "\tDump sizeof various data structures.",
0, 0, "d", cli_debug_sizeof }, 0, 0, "d", cli_debug_sizeof },
{ "debug.panic.worker", "debug.panic.worker", { "debug.panic.worker", "debug.panic.worker",
"\tPanic the worker process.\n", "\tPanic the worker process.",
0, 0, "d", ccf_panic }, 0, 0, "d", ccf_panic },
{ NULL } { NULL }
}; };
......
...@@ -286,7 +286,7 @@ debug_fragfetch(struct cli *cli, const char * const *av, void *priv) ...@@ -286,7 +286,7 @@ debug_fragfetch(struct cli *cli, const char * const *av, void *priv)
static struct cli_proto debug_cmds[] = { static struct cli_proto debug_cmds[] = {
{ "debug.fragfetch", "debug.fragfetch", { "debug.fragfetch", "debug.fragfetch",
"\tEnable fetch fragmentation\n", 1, 1, "d", debug_fragfetch }, "\tEnable fetch fragmentation.", 1, 1, "d", debug_fragfetch },
{ NULL } { NULL }
}; };
......
...@@ -170,9 +170,9 @@ cli_debug_srandom(struct cli *cli, const char * const *av, void *priv) ...@@ -170,9 +170,9 @@ cli_debug_srandom(struct cli *cli, const char * const *av, void *priv)
static struct cli_proto debug_cmds[] = { static struct cli_proto debug_cmds[] = {
{ "debug.xid", "debug.xid", { "debug.xid", "debug.xid",
"\tExamine or set XID\n", 0, 1, "d", cli_debug_xid }, "\tExamine or set XID.", 0, 1, "d", cli_debug_xid },
{ "debug.srandom", "debug.srandom", { "debug.srandom", "debug.srandom",
"\tSeed the random(3) function\n", 0, 1, "d", "\tSeed the random(3) function.", 0, 1, "d",
cli_debug_srandom }, cli_debug_srandom },
{ NULL } { NULL }
}; };
......
...@@ -179,7 +179,7 @@ ccf_debug_vmod(struct cli *cli, const char * const *av, void *priv) ...@@ -179,7 +179,7 @@ ccf_debug_vmod(struct cli *cli, const char * const *av, void *priv)
} }
static struct cli_proto vcl_cmds[] = { static struct cli_proto vcl_cmds[] = {
{ "debug.vmod", "debug.vmod", "show loaded vmods", 0, 0, { "debug.vmod", "debug.vmod", "\tShow loaded vmods.", 0, 0,
"d", ccf_debug_vmod }, "d", ccf_debug_vmod },
{ NULL } { NULL }
}; };
......
...@@ -343,7 +343,7 @@ hcb_dump(struct cli *cli, const char * const *av, void *priv) ...@@ -343,7 +343,7 @@ hcb_dump(struct cli *cli, const char * const *av, void *priv)
} }
static struct cli_proto hcb_cmds[] = { static struct cli_proto hcb_cmds[] = {
{ "hcb.dump", "hcb.dump", "dump HCB tree\n", 0, 0, "d", hcb_dump }, { "hcb.dump", "hcb.dump", "\tDump HCB tree.", 0, 0, "d", hcb_dump },
{ NULL } { NULL }
}; };
......
...@@ -120,7 +120,7 @@ mcf_panic(struct cli *cli, const char * const *av, void *priv) ...@@ -120,7 +120,7 @@ mcf_panic(struct cli *cli, const char * const *av, void *priv)
static struct cli_proto cli_debug[] = { static struct cli_proto cli_debug[] = {
{ "debug.panic.master", "debug.panic.master", { "debug.panic.master", "debug.panic.master",
"\tPanic the master process.\n", "\tPanic the master process.",
0, 0, "d", mcf_panic, NULL}, 0, 0, "d", mcf_panic, NULL},
{ NULL } { NULL }
}; };
......
...@@ -70,7 +70,7 @@ stv_cli_list(struct cli *cli, const char * const *av, void *priv) ...@@ -70,7 +70,7 @@ stv_cli_list(struct cli *cli, const char * const *av, void *priv)
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
struct cli_proto cli_stv[] = { struct cli_proto cli_stv[] = {
{ "storage.list", "storage.list", "List storage devices\n", { "storage.list", "storage.list", "\tList storage devices.",
0, 0, "", stv_cli_list }, 0, 0, "", stv_cli_list },
{ NULL} { NULL}
}; };
......
...@@ -670,14 +670,13 @@ debug_persistent(struct cli *cli, const char * const * av, void *priv) ...@@ -670,14 +670,13 @@ debug_persistent(struct cli *cli, const char * const * av, void *priv)
} }
static struct cli_proto debug_cmds[] = { static struct cli_proto debug_cmds[] = {
{ "debug.persistent", "debug.persistent", { "debug.persistent", "debug.persistent",
"Persistent debugging magic:\n" "Persistent debugging magic:\n"
"\tdebug.persistent [stevedore [cmd]]\n" "\tdebug.persistent [<stevedore> [<cmd>]]\n"
"With no cmd arg, a summary of the silo is returned.\n" "With no cmd arg, a summary of the silo is returned.\n"
"Possible commands:\n" "Possible commands:\n"
"\tsync\tClose current segment, open a new one\n" "\tsync\tClose current segment, open a new one\n"
"\tdump\tinclude objcores in silo summary\n" "\tdump\tinclude objcores in silo summary",
"",
0, 2, "d", debug_persistent }, 0, 2, "d", debug_persistent },
{ NULL } { NULL }
}; };
......
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
#define CLI_SERVER_STOP \ #define CLI_SERVER_STOP \
"stop", \ "stop", \
"stop", \ "stop", \
"\tStop the Varnish cache process", \ "\tStop the Varnish cache process.", \
0, 0 0, 0
#define CLI_SERVER_START \ #define CLI_SERVER_START \
...@@ -133,20 +133,20 @@ ...@@ -133,20 +133,20 @@
#define CLI_PING \ #define CLI_PING \
"ping", \ "ping", \
"ping [timestamp]", \ "ping [<timestamp>]", \
"\tKeep connection alive", \ "\tKeep connection alive.", \
0, 1 0, 1
#define CLI_HELP \ #define CLI_HELP \
"help", \ "help", \
"help [command]", \ "help [<command>]", \
"\tShow command/protocol help", \ "\tShow command/protocol help.", \
0, 1 0, 1
#define CLI_QUIT \ #define CLI_QUIT \
"quit", \ "quit", \
"quit", \ "quit", \
"\tClose connection", \ "\tClose connection.", \
0, 0 0, 0
#define CLI_SERVER_STATUS \ #define CLI_SERVER_STATUS \
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
#define CLI_AUTH \ #define CLI_AUTH \
"auth", \ "auth", \
"auth response", \ "auth <response>", \
"\tAuthenticate.", \ "\tAuthenticate.", \
1, 1 1, 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment