From 23b40fc9950ebe16c109f0693ca6a69248d13e54 Mon Sep 17 00:00:00 2001 From: Idan David Date: Sun, 5 Apr 2020 13:50:01 +0300 Subject: [PATCH] Add command line options --- camelot/cli.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/camelot/cli.py b/camelot/cli.py index 0298992..1a7c0be 100644 --- a/camelot/cli.py +++ b/camelot/cli.py @@ -237,6 +237,13 @@ def lattice(c, *args, **kwargs): multiple=True, help="X coordinates of column separators.", ) +@click.option( + "-R", + "--rows", + default=[], + multiple=True, + help="Y coordinates of rows separators.", +) @click.option( "-e", "--edge_tol", @@ -282,6 +289,8 @@ def stream(c, *args, **kwargs): kwargs["table_areas"] = None if not table_areas else table_areas columns = list(kwargs["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 not _HAS_MPL: