]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
add options-help get from launcher
authorDUC ANH HOANG <dh77501n@dsp1043837>
Tue, 21 May 2024 09:51:51 +0000 (11:51 +0200)
committerDUC ANH HOANG <dh77501n@dsp1043837>
Tue, 21 May 2024 09:51:51 +0000 (11:51 +0200)
bin/salomeContext.py

index d59f2cad6c8e23da893da7010e039e9e3543ff52..04f960e31b69b98e77b3a6febf68a954989a8584 100755 (executable)
@@ -33,7 +33,8 @@ import platform
 
 from salomeContextUtils import SalomeContextException
 
-def usage():
+def usage(appended_cmd_doc = "", appended_opt_doc = ""):
+  add_in_help = {"appended_cmd_doc":appended_cmd_doc,"appended_opt_doc":appended_opt_doc}
   msg = '''\
 Usage: salome [command] [options] [--config=<file,folder,...>] [--with-env-modules=<env_module1,env_module2,...>]
 
@@ -58,7 +59,7 @@ Commands:
                     Port numbers must be separated by blank characters.
     killall         Terminate *all* SALOME running SWS instances for current user.
                     Do not start a new one.
-
+%(appended_cmd_doc)s
 If no command is given, default is start.
 
 Command options:
@@ -76,9 +77,10 @@ Command options:
 ================================================
     Initialize SALOME context with the provided additional environment modules.
     The list is comma-separated, without any blank characters.
+%(appended_opt_doc)s
 '''
 
-  print(msg)
+  print(msg%add_in_help)
 #
 
 """