From 7cbb0b15185107493896b24ddfc00766433b169d Mon Sep 17 00:00:00 2001 From: DUC ANH HOANG Date: Tue, 21 May 2024 11:51:51 +0200 Subject: [PATCH] add options-help get from launcher --- bin/salomeContext.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/salomeContext.py b/bin/salomeContext.py index d59f2cad6..04f960e31 100755 --- a/bin/salomeContext.py +++ b/bin/salomeContext.py @@ -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=] [--with-env-modules=] @@ -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) # """ -- 2.39.2