Changeset 6832


Ignore:
Timestamp:
02/12/12 08:08:34 (15 months ago)
Author:
anthony
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/MagickWand/magick-cli.c

    r6830 r6832  
    200200                   MagickCommandOptions,MagickFalse,argv[i]); 
    201201 
    202 #define MagickCommandDebug 0 
     202#define MagickCommandDebug 1 
    203203 
    204204      if ( count == -1 || flags == UndefinedOptionFlag || 
    205205           (flags & NonConvertOptionFlag) != 0 ) 
    206206        { 
    207           count = 0; 
    208207#if MagickCommandDebug 
    209       (void) FormatLocaleFile(stderr, "CLI Non-Option: \"%s\"\n", option); 
     208          (void) FormatLocaleFile(stderr, "CLI Non-Option: \"%s\"\n", option); 
    210209#endif 
    211210          if (IsCommandOption(option) == MagickFalse) 
     
    213212              /* non-option -- treat as a image read */ 
    214213              MagickSpecialOption(wand,"-read",option); 
     214              count = 0; 
    215215              continue; 
    216216            } 
     
    278278    } 
    279279 
     280  assert(i==(ssize_t)(argc-1)); 
     281  option=argv[i];  /* the last argument - output filename! */ 
     282#if MagickCommandDebug 
     283  (void) FormatLocaleFile(stderr, "CLI Output: \"%s\"\n", option ); 
     284#endif 
     285 
     286  // if stacks are not empty 
     287  //  ThrowConvertException(OptionError,"UnbalancedParenthesis",option,i); 
     288 
    280289  /* FUTURE: in the following produce a better error report 
    281290     -- Missing Output filename 
    282291  */ 
    283  
    284   assert(i!=(ssize_t)(argc-1)); 
    285   option=argv[i];  /* the last argument - output filename! */ 
    286  
    287 #if MagickCommandDebug 
    288   (void) FormatLocaleFile(stderr, "CLI Output: \"%s\"\n", option ); 
    289 #endif 
    290  
    291   // if stacks are not empty 
    292   //  ThrowConvertException(OptionError,"UnbalancedParenthesis",option,i); 
    293292 
    294293 
Note: See TracChangeset for help on using the changeset viewer.