...
 
Commits (2)
......@@ -8,7 +8,7 @@ Copyright (C) 2017, 2018 Juergen Nickelsen <ni@w21.org>. See LICENSE
for the conditions under which this code is licensed to you.
Pyle is meant to be a rather (although not strictly) minimal
interpreter, with a few features in the builtin core. More functionality
interpreter, with few features in the builtin core. More functionality
shall, if possible, be implemented in the language itself. In order
to do that, it has macros.
......
......@@ -31,7 +31,7 @@ usage: pyle [-t] [-l loadfile] [-d debugfflags] [-L loadpath] [program] ...
ovc, argv = posix_getopts.parse({
"t": [0, bool, "traceback", "print python tracebacks on error"],
"l": [[], str, "loadfiles", "load file(s)"],
"d": [[], str, "debugflags", "set debug flag(s)"],
"d": ["", str, "debugflags", "set debug flag(s), separated by commas"],
"r": [10000, int, "recursion_limit", "set recursion limit"],
"s": [0, bool, "evalstack", "print eval stack or error"],
"L": [default_loadpath, str, "loadpath", "set the load path"],
......@@ -40,9 +40,8 @@ ovc, argv = posix_getopts.parse({
# dbg.p(dbg.main, sys.argv[0], "starting up")
for flags in ovc.debugflags:
for flag in flags.split(","):
dbg.addFlag(flag)
for flag in ovc.debugflags.split(","):
dbg.addFlag(flag)
sys.setrecursionlimit(ovc.recursion_limit)
info.verbosity = 1
......