Lines Matching +full:- +full:- +full:option

20 %  Copyright 1999-2019 ImageMagick Studio LLC, a non-profit organization      %
49 #include "MagickWand/mogrify-private.h"
50 #include "MagickCore/stream-private.h"
51 #include "MagickCore/string-private.h"
95 "-channel mask set the image channel mask", in StreamUsage()
96 "-debug events display copious debugging information", in StreamUsage()
97 "-help print program options", in StreamUsage()
98 "-list type print a list of supported option arguments", in StreamUsage()
99 "-log format format of debugging information", in StreamUsage()
100 "-version print version information", in StreamUsage()
105 "-authenticate password", in StreamUsage()
107 "-colorspace type alternate image colorspace", in StreamUsage()
108 "-compress type type of pixel compression when writing the image", in StreamUsage()
109 "-define format:option", in StreamUsage()
111 "-density geometry horizontal and vertical density of the image", in StreamUsage()
112 "-depth value image depth", in StreamUsage()
113 "-extract geometry extract area from image", in StreamUsage()
114 "-identify identify the format and characteristics of the image", in StreamUsage()
115 "-interlace type type of image interlacing scheme", in StreamUsage()
116 "-interpolate method pixel color interpolation method", in StreamUsage()
117 "-limit type value pixel cache resource limit", in StreamUsage()
118 "-map components one or more pixel components", in StreamUsage()
119 "-monitor monitor progress", in StreamUsage()
120 "-quantize colorspace reduce colors in this colorspace", in StreamUsage()
121 "-quiet suppress all warning messages", in StreamUsage()
122 "-regard-warnings pay attention to warning messages", in StreamUsage()
123 "-respect-parentheses settings remain in effect until parenthesis boundary", in StreamUsage()
124 "-sampling-factor geometry", in StreamUsage()
126 "-seed value seed a new sequence of pseudo-random numbers", in StreamUsage()
127 "-set attribute value set an image attribute", in StreamUsage()
128 "-size geometry width and height of image", in StreamUsage()
129 "-storage-type type pixel storage type", in StreamUsage()
130 "-synchronize synchronize image to storage device", in StreamUsage()
131 "-taint declare the image as modified", in StreamUsage()
132 "-transparent-color color", in StreamUsage()
134 "-verbose print detailed information about the image", in StreamUsage()
135 "-virtual-pixel method", in StreamUsage()
141 (void) printf("Usage: %s [options ...] input-image raw-image\n", in StreamUsage()
157 (void) printf("'-' for standard input or output.\n"); in StreamUsage()
172 #define ThrowStreamException(asperity,tag,option) \ in StreamImageCommand() argument
175 option); \ in StreamImageCommand()
179 #define ThrowStreamInvalidArgumentException(option,argument) \ in StreamImageCommand() argument
182 "InvalidArgument","'%s': %s",option,argument); \ in StreamImageCommand()
189 *option; in StreamImageCommand() local
222 assert(image_info->signature == MagickCoreSignature); in StreamImageCommand()
223 if (image_info->debug != MagickFalse) in StreamImageCommand()
229 option=argv[1]; in StreamImageCommand()
230 if ((LocaleCompare("version",option+1) == 0) || in StreamImageCommand()
231 (LocaleCompare("-version",option+1) == 0)) in StreamImageCommand()
244 option=(char *) NULL; in StreamImageCommand()
257 status=OpenStream(image_info,stream_info,argv[argc-1],exception); in StreamImageCommand()
263 for (i=1; i < (ssize_t) (argc-1); i++) in StreamImageCommand()
265 option=argv[i]; in StreamImageCommand()
266 if (LocaleCompare(option,"(") == 0) in StreamImageCommand()
270 ThrowStreamException(OptionError,"ParenthesisNestedTooDeeply",option); in StreamImageCommand()
274 if (LocaleCompare(option,")") == 0) in StreamImageCommand()
278 ThrowStreamException(OptionError,"UnableToParseExpression",option); in StreamImageCommand()
282 if (IsCommandOption(option) == MagickFalse) in StreamImageCommand()
292 if ((LocaleCompare(filename,"--") == 0) && (i < (ssize_t) (argc-1))) in StreamImageCommand()
294 (void) CopyMagickString(image_info->filename,filename,MagickPathExtent); in StreamImageCommand()
297 (exception->severity < ErrorException); in StreamImageCommand()
304 switch (*(option+1)) in StreamImageCommand()
308 if (LocaleCompare("authenticate",option+1) == 0) in StreamImageCommand()
310 if (*option == '+') in StreamImageCommand()
314 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
317 ThrowStreamException(OptionError,"UnrecognizedOption",option) in StreamImageCommand()
321 if (LocaleCompare("cache",option+1) == 0) in StreamImageCommand()
323 if (*option == '+') in StreamImageCommand()
327 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
329 ThrowStreamInvalidArgumentException(option,argv[i]); in StreamImageCommand()
332 if (LocaleCompare("channel",option+1) == 0) in StreamImageCommand()
337 if (*option == '+') in StreamImageCommand()
341 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
348 if (LocaleCompare("colorspace",option+1) == 0) in StreamImageCommand()
353 if (*option == '+') in StreamImageCommand()
357 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
365 if (LocaleCompare("compress",option+1) == 0) in StreamImageCommand()
370 if (*option == '+') in StreamImageCommand()
374 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
382 if (LocaleCompare("concurrent",option+1) == 0) in StreamImageCommand()
384 ThrowStreamException(OptionError,"UnrecognizedOption",option) in StreamImageCommand()
388 if (LocaleCompare("debug",option+1) == 0) in StreamImageCommand()
393 if (*option == '+') in StreamImageCommand()
397 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
404 if (LocaleCompare("define",option+1) == 0) in StreamImageCommand()
408 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
409 if (*option == '+') in StreamImageCommand()
421 if (LocaleCompare("density",option+1) == 0) in StreamImageCommand()
423 if (*option == '+') in StreamImageCommand()
427 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
429 ThrowStreamInvalidArgumentException(option,argv[i]); in StreamImageCommand()
432 if (LocaleCompare("depth",option+1) == 0) in StreamImageCommand()
434 if (*option == '+') in StreamImageCommand()
438 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
440 ThrowStreamInvalidArgumentException(option,argv[i]); in StreamImageCommand()
443 if (LocaleCompare("duration",option+1) == 0) in StreamImageCommand()
445 if (*option == '+') in StreamImageCommand()
449 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
451 ThrowStreamInvalidArgumentException(option,argv[i]); in StreamImageCommand()
454 ThrowStreamException(OptionError,"UnrecognizedOption",option) in StreamImageCommand()
458 if (LocaleCompare("extract",option+1) == 0) in StreamImageCommand()
460 if (*option == '+') in StreamImageCommand()
464 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
466 ThrowStreamInvalidArgumentException(option,argv[i]); in StreamImageCommand()
469 ThrowStreamException(OptionError,"UnrecognizedOption",option) in StreamImageCommand()
473 if ((LocaleCompare("help",option+1) == 0) || in StreamImageCommand()
474 (LocaleCompare("-help",option+1) == 0)) in StreamImageCommand()
476 ThrowStreamException(OptionError,"UnrecognizedOption",option) in StreamImageCommand()
480 if (LocaleCompare("identify",option+1) == 0) in StreamImageCommand()
482 if (LocaleCompare("interlace",option+1) == 0) in StreamImageCommand()
487 if (*option == '+') in StreamImageCommand()
491 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
499 if (LocaleCompare("interpolate",option+1) == 0) in StreamImageCommand()
504 if (*option == '+') in StreamImageCommand()
508 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
516 ThrowStreamException(OptionError,"UnrecognizedOption",option) in StreamImageCommand()
520 if (LocaleCompare("limit",option+1) == 0) in StreamImageCommand()
531 if (*option == '+') in StreamImageCommand()
535 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
543 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
547 ThrowStreamInvalidArgumentException(option,argv[i]); in StreamImageCommand()
550 if (LocaleCompare("list",option+1) == 0) in StreamImageCommand()
555 if (*option == '+') in StreamImageCommand()
559 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
563 status=MogrifyImageInfo(image_info,(int) (i-j+1),(const char **) in StreamImageCommand()
568 if (LocaleCompare("log",option+1) == 0) in StreamImageCommand()
570 if (*option == '+') in StreamImageCommand()
574 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
577 ThrowStreamException(OptionError,"UnrecognizedOption",option) in StreamImageCommand()
581 if (LocaleCompare("map",option+1) == 0) in StreamImageCommand()
584 if (*option == '+') in StreamImageCommand()
590 if (LocaleCompare("monitor",option+1) == 0) in StreamImageCommand()
592 ThrowStreamException(OptionError,"UnrecognizedOption",option) in StreamImageCommand()
596 if (LocaleCompare("quantize",option+1) == 0) in StreamImageCommand()
601 if (*option == '+') in StreamImageCommand()
605 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
613 if (LocaleCompare("quiet",option+1) == 0) in StreamImageCommand()
615 ThrowStreamException(OptionError,"UnrecognizedOption",option) in StreamImageCommand()
619 if (LocaleCompare("regard-warnings",option+1) == 0) in StreamImageCommand()
621 if (LocaleNCompare("respect-parentheses",option+1,17) == 0) in StreamImageCommand()
623 respect_parenthesis=(*option == '-') ? MagickTrue : MagickFalse; in StreamImageCommand()
626 ThrowStreamException(OptionError,"UnrecognizedOption",option) in StreamImageCommand()
630 if (LocaleCompare("sampling-factor",option+1) == 0) in StreamImageCommand()
632 if (*option == '+') in StreamImageCommand()
636 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
638 ThrowStreamInvalidArgumentException(option,argv[i]); in StreamImageCommand()
641 if (LocaleCompare("seed",option+1) == 0) in StreamImageCommand()
643 if (*option == '+') in StreamImageCommand()
647 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
649 ThrowStreamInvalidArgumentException(option,argv[i]); in StreamImageCommand()
652 if (LocaleCompare("set",option+1) == 0) in StreamImageCommand()
656 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
657 if (*option == '+') in StreamImageCommand()
661 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
664 if (LocaleCompare("size",option+1) == 0) in StreamImageCommand()
666 if (*option == '+') in StreamImageCommand()
670 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
672 ThrowStreamInvalidArgumentException(option,argv[i]); in StreamImageCommand()
675 if (LocaleCompare("storage-type",option+1) == 0) in StreamImageCommand()
680 if (*option == '+') in StreamImageCommand()
684 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
692 if (LocaleCompare("synchronize",option+1) == 0) in StreamImageCommand()
694 ThrowStreamException(OptionError,"UnrecognizedOption",option) in StreamImageCommand()
698 if (LocaleCompare("taint",option+1) == 0) in StreamImageCommand()
700 if (LocaleCompare("transparent-color",option+1) == 0) in StreamImageCommand()
702 if (*option == '+') in StreamImageCommand()
706 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
709 ThrowStreamException(OptionError,"UnrecognizedOption",option) in StreamImageCommand()
713 if (LocaleCompare("verbose",option+1) == 0) in StreamImageCommand()
715 if ((LocaleCompare("version",option+1) == 0) || in StreamImageCommand()
716 (LocaleCompare("-version",option+1) == 0)) in StreamImageCommand()
721 if (LocaleCompare("virtual-pixel",option+1) == 0) in StreamImageCommand()
726 if (*option == '+') in StreamImageCommand()
730 ThrowStreamException(OptionError,"MissingArgument",option); in StreamImageCommand()
738 ThrowStreamException(OptionError,"UnrecognizedOption",option) in StreamImageCommand()
743 ThrowStreamException(OptionError,"UnrecognizedOption",option) in StreamImageCommand()
745 fire=(GetCommandOptionFlags(MagickCommandOptions,MagickFalse,option) & in StreamImageCommand()
752 if (i-- != (ssize_t) (argc-1)) in StreamImageCommand()