]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
More clear warning if sat clean do not suppress anything
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 27 Sep 2016 08:32:47 +0000 (10:32 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 27 Sep 2016 08:32:47 +0000 (10:32 +0200)
commands/clean.py

index 9d7b05b0e402af61933ed18a28bf70b645a8c99a..29934b6c37250ad120c38c6d7e96432cad8cdb4a 100644 (file)
@@ -166,6 +166,12 @@ def run(args, runner, logger):
     
     if len(l_dir_to_suppress) == 0:
         logger.write(src.printcolors.printcWarning(_("Nothing to suppress\n")))
+        logger.write(src.printcolors.printcWarning("\n"))
+        sat_command = (runner.cfg.VARS.salometoolsway +
+                       runner.cfg.VARS.sep +
+                       "sat -h clean") 
+        logger.write(_("Please specify what you want to suppress: "
+                       "tap \"%s\"\n" % sat_command))
         return
     
     # Check with the user if he really wants to suppress the directories