mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-23 15:09:24 -05:00
Support -logoverwrite and -logappend command-line flags.
If it's worth having command-line options to _specify_ a log file, it's also worth having options to avoid having to answer an interactive prompt _about_ that log file every time. (Particularly useful when debugging, in which I often want to run a zillion instances of the same quite temporary command line that involves writing a log file.)
This commit is contained in:
parent
fa134affeb
commit
ca73159c14
14
cmdline.c
14
cmdline.c
@ -807,6 +807,20 @@ int cmdline_process_param(const char *p, char *value,
|
|||||||
filename_free(fn);
|
filename_free(fn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!strcmp(p, "-logoverwrite")) {
|
||||||
|
RETURN(1);
|
||||||
|
UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);
|
||||||
|
SAVEABLE(0);
|
||||||
|
conf_set_int(conf, CONF_logxfovr, LGXF_OVR);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!strcmp(p, "-logappend")) {
|
||||||
|
RETURN(1);
|
||||||
|
UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);
|
||||||
|
SAVEABLE(0);
|
||||||
|
conf_set_int(conf, CONF_logxfovr, LGXF_APN);
|
||||||
|
}
|
||||||
|
|
||||||
if (!strcmp(p, "-proxycmd")) {
|
if (!strcmp(p, "-proxycmd")) {
|
||||||
RETURN(2);
|
RETURN(2);
|
||||||
UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);
|
UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user