Added bnf when adding a new concept + Started logging filtering
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user