diff --git a/windows/pterm.c b/windows/pterm.c index 0df849f9..bb68245d 100644 --- a/windows/pterm.c +++ b/windows/pterm.c @@ -1,6 +1,10 @@ #include "putty.h" #include "storage.h" +const unsigned cmdline_tooltype = + TOOLTYPE_NONNETWORK | + TOOLTYPE_NO_VERBOSE_OPTION; + void gui_term_process_cmdline(Conf *conf, char *cmdline) { do_defaults(NULL, conf); @@ -16,8 +20,16 @@ void gui_term_process_cmdline(Conf *conf, char *cmdline) split_into_argv(cmdline, &argc, &argv, &argstart); for (int i = 0; i < argc; i++) { - const char *arg = argv[i]; - if (!strcmp(arg, "-e")) { + char *arg = argv[i]; + int retd = cmdline_process_param( + arg, i+1