From 9d5edd161cd1e8afcbca310a49393f1bc8fd2e19 Mon Sep 17 00:00:00 2001
From: Mark Olesen <Mark.Olesen@esi-group.com>
Date: Sun, 24 Feb 2019 11:40:09 +0100
Subject: [PATCH] STYLE: mention -doc-source option under -help-full instead of
 under -help

---
 src/OpenFOAM/global/argList/argListHelp.C | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/OpenFOAM/global/argList/argListHelp.C b/src/OpenFOAM/global/argList/argListHelp.C
index 56386c90690..850359654c0 100644
--- a/src/OpenFOAM/global/argList/argListHelp.C
+++ b/src/OpenFOAM/global/argList/argListHelp.C
@@ -284,7 +284,6 @@ void Foam::argList::printMan() const
     // Standard documentation/help options
 
     printManOption("doc", "Display documentation in browser");
-    printManOption("doc-source", "Display source code in browser");
     printManOption("help", "Display short help and exit");
     printManOption("help-full", "Display full help and exit");
 
@@ -301,6 +300,8 @@ void Foam::argList::printMan() const
         }
     }
 
+    printManOption("doc-source", "Display source code in browser");
+
 
     const bool hasCompat =
     (
@@ -393,7 +394,10 @@ void Foam::argList::printUsage(bool full) const
     // Place documentation/help options at the end
 
     printOption("doc", "Display documentation in browser");
-    printOption("doc-source", "Display source code in browser");
+    if (full)
+    {
+        printOption("doc-source", "Display source code in browser");
+    }
     printOption("help", "Display short help and exit");
 
     if
-- 
GitLab