X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Foptions.c;h=5ec558cfe01c7c6d8713be5692f2bcf0a7568070;hp=f62ab16b2b6f9922538048b6d90876515ab8fbfb;hb=381f9a2e8aa1697e2af3c2bcad962dfcfe7348d7;hpb=0f2dfabd3b6123eb0cf9620e557e95ad76eaef91 diff --git a/src/helper/options.c b/src/helper/options.c index f62ab16b2b..5ec558cfe0 100644 --- a/src/helper/options.c +++ b/src/helper/options.c @@ -110,15 +110,7 @@ int parse_cmdline_args(struct command_context_s *cmd_ctx, int argc, char *argv[] break; case 'f': /* --file | -f */ { - char *t=strrchr(optarg, '.'); - if (strcmp(t, ".tcl")==0) - { - /* Files ending in .tcl are executed as Tcl files */ - snprintf(command_buffer, 128, "source [find {%s}]", optarg); - } else - { - snprintf(command_buffer, 128, "script %s", optarg); - } + snprintf(command_buffer, 128, "script %s", optarg); add_config_command(command_buffer); break; }