import sys
from . import parse, progress, config
-from .display import Display, CursesError
+from .display import Display
from .deck import Status
help="specify which view to start in",
)
parser.add_argument("inp", metavar="input_files", type=str, nargs="+")
+ parser.add_argument(
+ "-l",
+ "--lenient",
+ action="store_true",
+ help="don't raise exception if tables are malformed",
+ )
+ parser.add_argument(
+ "-t",
+ "--table",
+ metavar="num_table",
+ type=int,
+ help="specify which table to use if multiple are given",
+ )
parser.add_argument(
"-a",
"--alphabetize",
try:
curses.wrapper(win.run)
except curses.error as e:
- raise CursesError() from e
+ raise e
def get_orig():
sys.tracebacklimit = 0
global headers, stack
- (headers, stack) = parse.parse_html(parse.md2html(args.inp))
+ (headers, stack) = parse.parse_html(parse.md2html(args.inp), args, conf)
show(args, stack, headers, conf)