diff --git a/MagickWand/magick-cli.c b/MagickWand/magick-cli.c
index 63ba98b..95e08ab 100644
--- a/MagickWand/magick-cli.c
+++ b/MagickWand/magick-cli.c
@@ -775,18 +775,18 @@
goto Magick_Command_Exit;
}
- /* List Information and Abort */
- if (LocaleCompare("-list",argv[1]) == 0) {
- CLIOption(cli_wand, argv[1], argv[2]);
- goto Magick_Command_Exit;
- }
-
/* Special "concatenate option (hidden) for delegate usage */
if (LocaleCompare("-concatenate",argv[1]) == 0) {
ConcatenateImages(argc,argv,exception);
goto Magick_Command_Exit;
}
+ /* List Information and Abort */
+ if (argc == 3 && LocaleCompare("-list",argv[1]) == 0) {
+ CLIOption(cli_wand, argv[1], argv[2]);
+ goto Magick_Command_Exit;
+ }
+
/* ------------- */
/* The Main Call */