Salome HOME
projects
/
tools
/
sat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add AllTestLauncher and src/loggingSimple.py etc...
[tools/sat.git]
/
src
/
options.py
diff --git
a/src/options.py
b/src/options.py
old mode 100644
(file)
new mode 100755
(executable)
index
5822d39
..
911cb71
--- a/
src/options.py
+++ b/
src/options.py
@@
-149,8
+149,10
@@
class Options(object):
"""
msg = ""
# Do nothing if there are no options
"""
msg = ""
# Do nothing if there are no options
- if len(self.options) == 0:
- return _("No available options.")
+
+ #there is -h option, always
+ #if len(self.options) == 0:
+ # return _("No available options.")
# for all options, gets its values.
# "shortname" is an mandatory field of the options, could be ''
# for all options, gets its values.
# "shortname" is an mandatory field of the options, could be ''
@@
-165,15
+167,6
@@
class Options(object):
msg += "%s\n" % self.indent(ooh, 10)
return msg
msg += "%s\n" % self.indent(ooh, 10)
return msg
- def print_help(self):
- """
- Method that display all options stored in self.options and there help
-
- :return: None
- """
- print(self.get_help())
- return
-
def indent(self, text, amount, car=" "):
"""indent multi lines message"""
padding = amount * car
def indent(self, text, amount, car=" "):
"""indent multi lines message"""
padding = amount * car
@@
-260,7
+253,7
@@
class Options(object):
def filterLevel(self, aLevel):
"""filter level logging values"""
def filterLevel(self, aLevel):
"""filter level logging values"""
- import src.loggingS
at
as LOG
+ import src.loggingS
imple
as LOG
aLev = aLevel.upper()
knownLevels = LOG._knownLevels
maxLen = max([len(i) for i in knownLevels])
aLev = aLevel.upper()
knownLevels = LOG._knownLevels
maxLen = max([len(i) for i in knownLevels])