From d11eb1a63da7420255dab3dcc68c76950ee167b9 Mon Sep 17 00:00:00 2001 From: Peter Vingelmann Date: Wed, 14 Sep 2016 20:43:41 +0200 Subject: [PATCH] Do not terminate if no matching file was found for a wildcard --- src/astyle_main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/astyle_main.cpp b/src/astyle_main.cpp index 952340c..bb30b76 100644 --- a/src/astyle_main.cpp +++ b/src/astyle_main.cpp @@ -1450,7 +1450,9 @@ void ASConsole::getFilePaths(string& filePath) fprintf(stderr, _("No file to process %s\n"), filePath.c_str()); if (hasWildcard && !isRecursive) fprintf(stderr, "%s\n", _("Did you intend to use --recursive")); - error(); + // Do not terminate if no match was found for this wildcard + if (!hasWildcard) + error(); } if (hasWildcard)