1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-21 04:55:02 -05:00

Some of the new options shouldn't be available in the file transfer

tools.

[originally from svn r1820]
This commit is contained in:
Simon Tatham 2002-08-07 18:43:40 +00:00
parent 1f0b28b305
commit b844f3c0bf

View File

@ -236,33 +236,39 @@ int cmdline_process_param(char *p, char *value, int need_save)
if (!strcmp(p, "-A")) { if (!strcmp(p, "-A")) {
RETURN(1); RETURN(1);
UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER);
SAVEABLE(1); SAVEABLE(1);
cfg.agentfwd = 1; cfg.agentfwd = 1;
} }
if (!strcmp(p, "-a")) { if (!strcmp(p, "-a")) {
RETURN(1); RETURN(1);
UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER);
SAVEABLE(1); SAVEABLE(1);
cfg.agentfwd = 0; cfg.agentfwd = 0;
} }
if (!strcmp(p, "-X")) { if (!strcmp(p, "-X")) {
RETURN(1); RETURN(1);
UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER);
SAVEABLE(1); SAVEABLE(1);
cfg.x11_forward = 1; cfg.x11_forward = 1;
} }
if (!strcmp(p, "-x")) { if (!strcmp(p, "-x")) {
RETURN(1); RETURN(1);
UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER);
SAVEABLE(1); SAVEABLE(1);
cfg.x11_forward = 0; cfg.x11_forward = 0;
} }
if (!strcmp(p, "-t")) { if (!strcmp(p, "-t")) {
RETURN(1); RETURN(1);
UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER);
SAVEABLE(1); SAVEABLE(1);
cfg.nopty = 0; cfg.nopty = 0;
} }
if (!strcmp(p, "-T")) { if (!strcmp(p, "-T")) {
RETURN(1); RETURN(1);
UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER);
SAVEABLE(1); SAVEABLE(1);
cfg.nopty = 1; cfg.nopty = 1;
} }