mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user