]> granicus.if.org Git - imagemagick/blobdiff - MagickWand/wandcli-private.h
(no commit message)
[imagemagick] / MagickWand / wandcli-private.h
index 4b9618bb4b80e78417c157d9e62568763a959e31..4e84a6d1576233ccb39fa1fab0907da90af89159 100644 (file)
@@ -30,10 +30,10 @@ extern "C" {
   (void) CLIThrowException(cli_wand,GetMagickModule(),severity,tag, \
        "'%s' '%s'",option, arg)
 
-#define CLIWandWarnDepreciated(message) \
+#define CLIWandWarnReplaced(message) \
   if ( (cli_wand->process_flags & ProcessWarnDepreciated) != 0 ) \
     (void) CLIThrowException(cli_wand,GetMagickModule(),OptionWarning, \
-       "DeprecatedOption", "'%s' use \"%s\" instead",option,message)
+       "ReplacedOption", "'%s', use \"%s\"",option,message)
 
 #define CLIWandExceptionFile(severity,tag,context) \
 { char *message=GetExceptionMessage(errno); \
@@ -59,11 +59,12 @@ extern "C" {
 /* Define how options should be processed */
 typedef enum
 {
-  /* NonOption Handling */
-  ProcessNonOptionImageRead   = 0x0001,  /* A non-option is a image read
+  /* General Option Handling */
+  ProcessImplictRead          = 0x0001,  /* Non-options are image reads.
                                             If not set then skip implied read
                                             without producing an error.
                                             For use with "mogrify" handling */
+  ProcessInterpretProperities = 0x0010,  /* allow general escapes in args */
 
   /* Special Option Handling */
   ProcessExitOption           = 0x0100,  /* allow '-exit' use */
@@ -73,10 +74,10 @@ typedef enum
 
   /* Option Processing Flags */
   ProcessOneOptionOnly        = 0x4000,  /* Process one option only */
-  ProcessImpliedWrite         = 0x8000,  /* Last arg is an implied write */
+  ProcessImplictWrite         = 0x8000,  /* Last arg is an implict write */
 
   /* Flag Groups for specific Situations */
-  MagickCommandOptionFlags    = 0x8F0F,  /* Magick Command Flags */
+  MagickCommandOptionFlags    = 0x8FFF,  /* Magick Command Flags */
   ConvertCommandOptionFlags   = 0x800F,  /* Convert Command Flags */
   MagickScriptArgsFlags       = 0x000F,  /* Script CLI Process Args Flags */
 } ProcessOptionFlags;
@@ -108,16 +109,19 @@ struct _MagickCLI       /* CLI interface version of MagickWand */
   DrawInfo
     *draw_info;         /* for CLI API usage, not used by MagickWand API */
 
+  ProcessOptionFlags
+    process_flags;      /* When handling CLI, what options do we process? */
+
+  const OptionInfo
+    *command;           /* The option entry that is being processed */
+
   Stack
     *image_list_stack,  /* Stacks of Image Lists and Image Info settings */
     *image_info_stack;
 
-  ProcessOptionFlags
-    process_flags;      /* when handling CLI, what options do we process? */
-
   const char            /* Location of option being processed for exception */
     *location,          /* location format string for exception reports */
-    *filename;          /* "CLI", "unknown", or script filename */
+    *filename;          /* "CLI", "unknown", or the script filename */
 
   size_t
     line,               /* location of current option from source */