X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=bin%2FsalomeContext.py;h=04f960e31b69b98e77b3a6febf68a954989a8584;hb=17f89acccd51b2d2c86d44e70a1c053c10da0b3d;hp=d59f2cad6c8e23da893da7010e039e9e3543ff52;hpb=328226aa6c341484466f5dd9056bb543ac8e91a5;p=modules%2Fkernel.git 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) # """