CLISettingOptionInfo(cli_wand, option, arg1);
// FUTURE: Sync Specific Settings into Image Properities (not global)
}
+ if ( cli_wand->wand.images != (Image *)NULL )
+ SyncImagesSettings(cli_wand->wand.image_info,cli_wand->wand.images,
+ cli_wand->wand.exception);
if ( (option_type & SimpleOperatorOptionFlag) != 0)
CLISimpleOperatorImages(cli_wand, option, arg1, arg2);
CLISettingOptionInfo(cli_wand, option, arg1);
// FUTURE: Sync Specific Settings into Image Properities (not global)
}
+ if ( cli_wand->wand.images != (Image *)NULL )
+ SyncImagesSettings(cli_wand->wand.image_info,cli_wand->wand.images,
+ cli_wand->wand.exception);
if ( (option_type & SimpleOperatorOptionFlag) != 0)
CLISimpleOperatorImages(cli_wand, option, arg1, arg2);
ThrowConvertException(ResourceLimitError,"MemoryAllocationFailed",
GetExceptionMessage(errno));
#endif
+
/* Initialize special "CLI Wand" to hold images and settings (empty) */
cli_wand=AcquireMagickCLI(image_info,exception);
+ GetPathComponent(argv[0],TailPath,cli_wand->wand.name);
+ ConcatenateMagickString(cli_wand->wand.name,"-CLI",MaxTextExtent);
+
+#if 0
+ /* "convert" command - give a "depreciation" warning" */
+ if ( (LocaleCompare("convert",argv[0]+strlen((argv[0])-7) == 0) ||
+ (LocaleNCompare("convert",argv[0],7) == 0) ||
+ (LocaleNCompare("lt-convert",argv[0],10) == 0) ) {
+ /* output warning */
+ }
+#endif
+
/* Special Case: If command name ends with "script" then run it as is
a "-script" option is implied. This allows you to name the "magick"
command "magick-script", and create scripts of the form...
#!/usr/bin/env magick-script
*/
if (LocaleCompare("script",argv[0]+strlen(argv[0])-6) == 0) {
- cli_wand=AcquireMagickCLI(image_info,exception);
GetPathComponent(argv[1],TailPath,cli_wand->wand.name);
ProcessScriptOptions(cli_wand,argc,argv,1);
goto Magick_Command_Cleanup;
}
else {
/* Normal Command Line, assumes output file as last option */
- GetPathComponent(argv[0],TailPath,cli_wand->wand.name);
ProcessCommandOptions(cli_wand,argc,argv,1,
(LocaleCompare("magick",argv[0]+strlen(argv[0])-6) == 0)?
MagickCommandOptionFlags : ConvertCommandOptionFlags);