]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authoranthony <anthony@git.imagemagick.org>
Thu, 12 Apr 2012 11:54:26 +0000 (11:54 +0000)
committeranthony <anthony@git.imagemagick.org>
Thu, 12 Apr 2012 11:54:26 +0000 (11:54 +0000)
MagickCore/option.h
MagickWand/magick-cli.c
MagickWand/wandcli-private.h

index 35dd2e8f02e47624ecf5dcf32f7d669bb6ee0ca1..f7c541cbf4acae8d5c7b039ad9f4c446007934ff 100644 (file)
@@ -143,7 +143,7 @@ typedef enum
   SimpleOperatorOptionFlag  = 0x0010,  /* Simple Image processing operator */
   ListOperatorOptionFlag    = 0x0020,  /* Multi-Image processing operator */
   SpecialOptionFlag         = 0x0040,  /* Special handled Option */
-  GenesisOptionFlag         = 0x0080,  /* Genesis Command Wrapper Option  */
+  GenesisOptionFlag         = 0x0080,  /* MagickCommandGenesis() Only Option */
 
   ImageRequiredFlags        = 0x0030,  /* Flags also means Images Required */
 
index 27d3c3a0141344c618eeaf314fe7945a6e7adab6..8cf81845c27189c781885e2e0a91a754f804df58 100644 (file)
@@ -516,13 +516,15 @@ WandExport int ProcessCommandOptions(MagickCLI *cli_wand, int argc,
 #endif
 
     if ( (option_type & DeprecateOptionFlag) != 0 ) {
-      CLIWandException(OptionWarning,"DeprecatedOption",option);
-      if ( CLICatchException(cli_wand, MagickFalse) != MagickFalse )
-        return(end);
-      /* fall through - do the depreciated option */
+      if ( (cli_wand->process_flags & ProcessReportDepreciated) != 0 ) {
+        CLIWandException(OptionWarning,"DeprecatedOption",option);
+        if ( CLICatchException(cli_wand, MagickFalse) != MagickFalse )
+          return(end);
+        /* fall through - do the depreciated option */
+      }
     }
     if ( (option_type & GenesisOptionFlag) != 0 ) {
-      goto next_argument;  /* ignore genesis options */
+      goto next_argument;  /* ignore MagickCommandGenesis() Only Option */
     }
     if (((option_type & ImageRequiredFlags) != 0 ) &&
         ( cli_wand->wand.images == (Image *)NULL ) ) {
index 9c17b249b73ff2c727ed54559ed54d64d50a30bb..46bdeb73b83dd091fcbc7b81852fe78b4cd40b27 100644 (file)
@@ -63,6 +63,7 @@ typedef enum
   ProcessExitOption           = 0x0100,  /* allow '-exit' use */
   ProcessScriptOption         = 0x0200,  /* allow '-script' use */
   ProcessReadOption           = 0x0400,  /* allow '-read' use */
+  ProcessReportDepreciated    = 0x0800,  /* report depreciated options */
 
   /* Option Processing Flags */
   ProcessOneOptionOnly        = 0x4000,  /* Process one option only */