Salome HOME
be able to prepend an env value from APPLICATION.environ
[tools/sat.git] / commands / launcher.py
index c706a3a2f6d5171083e9224efc23c807f76b6e13..3367535aa604b85f01d8997276477dfdb9cba4ed 100644 (file)
@@ -27,12 +27,13 @@ import src
 \r
 parser = src.options.Options()\r
 \r
-parser.add_option('n', 'name', 'string', 'name', _('The name of the launcher '\r
-                            '(default is APPLICATION.profile.launcher_name)'))\r
+parser.add_option('n', 'name', 'string', 'name', _('Optional: The name of the'\r
+                            ' launcher (default is '\r
+                            'APPLICATION.profile.launcher_name)'))\r
 parser.add_option('c', 'catalog', 'string', 'catalog',\r
-    _('The resources catalog to use'))\r
+    _('Optional: The resources catalog to use'))\r
 parser.add_option('', 'gencat', 'string', 'gencat',\r
-    _("Create a resources catalog for the specified machines "\r
+    _("Optional: Create a resources catalog for the specified machines "\r
       "(separated with ',') \n\tNOTICE: this command will ssh to retrieve"\r
       " information to each machine in the list"))\r
 \r
@@ -96,7 +97,7 @@ def generate_launch_file(config,
         # Write the launcher file\r
         logger.write(_("Generating launcher for %s :\n") % \r
                      src.printcolors.printcLabel(config.VARS.application), 1)\r
-        logger.write("  %s\n" %src.printcolors.printcLabel(filepath), 1)\r
+        logger.write("  %s\n" % src.printcolors.printcLabel(filepath), 1)\r
     \r
     # open the file and write into it\r
     launch_file = open(filepath, "w")\r
@@ -349,7 +350,8 @@ def finish_profile_install(config, launcherPath):
 ##\r
 # Describes the command\r
 def description():\r
-    return _("The launcher command generates a salome launcher.")\r
+    return _("The launcher command generates a SALOME launcher.\n\nexample:"\r
+             "\nsat launcher SALOME-master")\r
 \r
 ##\r
 # Runs the command.\r