Added bnf when adding a new concept + Started logging filtering

This commit is contained in:
2019-12-13 20:26:11 +01:00
parent 75c8793d53
commit c668cc46d2
29 changed files with 1487 additions and 190 deletions
+5 -2
View File
@@ -14,16 +14,19 @@ def usage():
def main(argv):
try:
opts, args = getopt.getopt(argv, "hd", ["help", "debug"])
opts, args = getopt.getopt(argv, "hdl:", ["help", "debug", "logger="])
debug = False
loggers = set()
for o, a in opts:
if o in ('-h', "--help"):
usage()
return True
if o in ('-d', "--debug"):
debug = True
if o in ('-l', '-logger'):
loggers.add(a)
sheerka = Sheerka(debug=debug)
sheerka = Sheerka(debug=debug, loggers=loggers)
sheerka.initialize()
_in = core.utils.sysarg_to_string(args)