From b25cc424c3f547d9054e7c92bfcc116579cfc451 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Thu, 24 Aug 2023 03:02:24 +0200 Subject: [PATCH] This MT in conjuntion with https://gitlab.com/inkscape/inkscape/-/merge_requests/5669 Allow call extrniion from commandline and get the output of getters action into a XML we want to expose to python --- inkex/base.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/inkex/base.py b/inkex/base.py index 14de8b853..75f79310b 100644 --- a/inkex/base.py +++ b/inkex/base.py @@ -490,6 +490,15 @@ class SvgInputMixin(_Base): # pylint: disable=too-few-public-methods, abstract- help="id:subpath:position of selected nodes, if any", ) + self.arg_parser.add_argument( + "--log-action", + action="append", + type=str, + dest="log_action", + default=None, + help="Optional filename with XML file with data queried between this actions (log-start|log-end).", + ) + def load(self, stream): # type: (IO) -> etree """Load the stream as an svg xml etree and make a backup""" -- GitLab