mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Warn to keep the option list sorted.
This commit is contained in:
parent
a890134659
commit
6493450947
@ -100,15 +100,16 @@ CMD_DECLARE (cmd_spec_verbose);
|
|||||||
/* List of recognized commands, each consisting of name, place and
|
/* List of recognized commands, each consisting of name, place and
|
||||||
function. When adding a new command, simply add it to the list,
|
function. When adding a new command, simply add it to the list,
|
||||||
but be sure to keep the list sorted alphabetically, as
|
but be sure to keep the list sorted alphabetically, as
|
||||||
command_by_name depends on it. Also, be sure to add any entries
|
command_by_name's binary search depends on it. Also, be sure to
|
||||||
that allocate memory (e.g. cmd_string and cmd_vector) to the
|
add any entries that allocate memory (e.g. cmd_string and
|
||||||
cleanup() function below. */
|
cmd_vector) to the cleanup() function below. */
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
void *place;
|
void *place;
|
||||||
bool (*action) (const char *, const char *, void *);
|
bool (*action) (const char *, const char *, void *);
|
||||||
} commands[] = {
|
} commands[] = {
|
||||||
|
/* KEEP THIS LIST ALPHABETICALLY SORTED */
|
||||||
{ "accept", &opt.accepts, cmd_vector },
|
{ "accept", &opt.accepts, cmd_vector },
|
||||||
{ "addhostdir", &opt.add_hostdir, cmd_boolean },
|
{ "addhostdir", &opt.add_hostdir, cmd_boolean },
|
||||||
{ "alwaysrest", &opt.always_rest, cmd_boolean }, /* deprecated */
|
{ "alwaysrest", &opt.always_rest, cmd_boolean }, /* deprecated */
|
||||||
|
Loading…
Reference in New Issue
Block a user