[Wget] [TitleIndex] [WordIndex

Options How-To

How do I find out what a command line option does?

Look in src/main.c in the option_data array for the string to corresponds to the command line option; the entries are of the form:

{ "option", 'O', TYPE, "data", argtype },

For the processing of --some-nifty-option from the command line, you're searching for "some-nifty-option".

If TYPE is OPT_BOOLEAN or OPT_VALUE:

If TYPE is anything else:

How do I add a new command line option?

The simplest approach is to find an existing option that is close to what you want to accomplish and mirror it. You will need to edit the necessary source files as follows:

src/main.c

src/main.c

src/options.h

src/init.c

src/anything.c


2017-01-04 00:04