Modified the startup behavior so that if a ".tcl" script file is
presented on the command line, then all following arguments are assumed to be arguments of the script and not additional input to be processed by magic. This allows arguments to be passed to scripts passed to magic on the command line.
This commit is contained in:
parent
3b70c95013
commit
355399d3ef
|
|
@ -413,7 +413,16 @@ mainDoArgs(argc, argv)
|
|||
#endif
|
||||
#ifdef MAGIC_WRAPPER
|
||||
if (!strcasecmp(c, ".tcl"))
|
||||
{
|
||||
CurrentName->fn_type = FN_TCL_SCRIPT;
|
||||
/* Behavior: If a .tcl file is passed on the
|
||||
* command line, then all following arguments
|
||||
* are assumed to be arguments of the script,
|
||||
* and not to be processed as additional
|
||||
* input file types.
|
||||
*/
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue