1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Clarify how setoptval() works.

This commit is contained in:
hniksic 2003-10-30 03:09:18 -08:00
parent 6f1250b1c6
commit 6369bc5944

View File

@ -560,10 +560,12 @@ setval_internal (int comind, const char *com, const char *val)
/* Run command COM with value VAL. If running the command produces an /* Run command COM with value VAL. If running the command produces an
error, report the error and exit. error, report the error and exit.
This is intended to be called from main() with commands not This is intended to be called from main() to modify Wget's behavior
provided by the user, therefore it aborts when an unknown command through command-line switches. Since COM is hard-coded in main(),
is encountered. Once the COMIND's are exported to init.h, this it is not canonicalized, and this aborts when COM is not found.
function will be changed to accept COMIND directly. */
If COMIND's are exported to init.h, this function will be changed
to accept COMIND directly. */
void void
setoptval (const char *com, const char *val) setoptval (const char *com, const char *val)