Add command line options

pull/126/head
Idan David 2020-04-05 13:50:01 +03:00
parent 2a8c24e672
commit 23b40fc995
1 changed files with 9 additions and 0 deletions

View File

@ -237,6 +237,13 @@ def lattice(c, *args, **kwargs):
multiple=True, multiple=True,
help="X coordinates of column separators.", help="X coordinates of column separators.",
) )
@click.option(
"-R",
"--rows",
default=[],
multiple=True,
help="Y coordinates of rows separators.",
)
@click.option( @click.option(
"-e", "-e",
"--edge_tol", "--edge_tol",
@ -282,6 +289,8 @@ def stream(c, *args, **kwargs):
kwargs["table_areas"] = None if not table_areas else table_areas kwargs["table_areas"] = None if not table_areas else table_areas
columns = list(kwargs["columns"]) columns = list(kwargs["columns"])
kwargs["columns"] = None if not columns else columns kwargs["columns"] = None if not columns else columns
rows = list(kwargs["rows"])
kwargs["rows"] = None if not rows else rows
if plot_type is not None: if plot_type is not None:
if not _HAS_MPL: if not _HAS_MPL: