]> granicus.if.org Git - imagemagick/commitdiff
-depth is also a Setting and a Operator :-(
authoranthony <anthony@git.imagemagick.org>
Mon, 16 Apr 2012 01:17:38 +0000 (01:17 +0000)
committeranthony <anthony@git.imagemagick.org>
Mon, 16 Apr 2012 01:17:38 +0000 (01:17 +0000)
MagickCore/option.c
MagickWand/magick-cli.c

index 5a66da5aeeb25dea33bd3dc455b16a818d1335e7..d6c162b01136680bdb3176e2d0ed227ad4946279 100644 (file)
@@ -319,8 +319,8 @@ static const OptionInfo
     { "-delete", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
     { "+density", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
     { "-density", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
-    { "+depth", 0L, ImageInfoOptionFlag, MagickFalse },
-    { "-depth", 1L, ImageInfoOptionFlag, MagickFalse },
+    { "+depth", 0L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse },
+    { "-depth", 1L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse },
     { "+descend", 0L, NonMagickOptionFlag, MagickFalse },
     { "-descend", 1L, NonMagickOptionFlag, MagickFalse },
     { "+deskew", 0L, SimpleOperatorOptionFlag, MagickFalse },
index f9a97811f8a2cf5270f004bb2d24c25a2d678ae0..1d29d9aabd6e6372f1a8758cd6fa5a4fad97009d 100644 (file)
@@ -312,7 +312,7 @@ WandExport void ProcessScriptOptions(MagickCLI *cli_wand,int argc,char **argv,
 
     /* FUTURE: The not a setting part below is a temporary hack to stop gap
      * measure for options that are BOTH settings and optional 'Simple/List'
-     * operators.  Specifically -monitor  and  -colorspace */
+     * operators.  Specifically -monitor, -depth, and  -colorspace */
     if ( cli_wand->wand.images == (Image *)NULL ) {
       if (((option_type & ImageRequiredFlags) != 0 ) &&
           ((option_type & SettingOptionFlags) == 0 ))  /* temp hack */
@@ -546,7 +546,7 @@ WandExport int ProcessCommandOptions(MagickCLI *cli_wand, int argc,
 
     /* FUTURE: The not a setting part below is a temporary hack to stop gap
      * measure for options that are BOTH settings and optional 'Simple/List'
-     * operators.  Specifically -monitor  and  -colorspace */
+     * operators.  Specifically -monitor, -depth, and  -colorspace */
     if ( cli_wand->wand.images == (Image *)NULL ) {
       if (((option_type & ImageRequiredFlags) != 0 ) &&
           ((option_type & SettingOptionFlags) == 0 )  )  /* temp hack */