فهرست منبع

* Fix detection of usage

git-svn-id: trunk@36917 -
michael 8 سال پیش
والد
کامیت
33fea4f9e3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/fcl-fpcunit/src/consoletestrunner.pas

+ 1 - 1
packages/fcl-fpcunit/src/consoletestrunner.pas

@@ -384,7 +384,7 @@ Function TTestRunner.ParseOptions : Boolean;
 
 begin
   Result:=True;
-  if HasOption('h', 'help') or ((ParamCount = 0) and not DefaultRunAllTests) then
+  if HasOption('h', 'help') or ((ParamCount = 0) and (FRunMode<>rmAll)) then
     begin
     Usage;
     Exit(False);