Can't use export-area action in shell
Steps to reproduce:
Trying to use export-area
in shell mode fails. Seems like action argument ends at the first :
.
I suspect that https://gitlab.com/inkscape/inkscape/-/blob/master/src/inkscape-application.cpp#L1056 will split export-area:1:2:3:4
into export-area
, 1
, 2
, 3
and 4
.
$ /Applications/Inkscape.app/Contents/MacOS/inkscape --shell
Inkscape interactive shell mode. Type 'action-list' to list all actions. Type 'quit' to quit.
Input of the form:
action1:arg1; action2;arg2; verb1; verb2; ...
Only verbs that don't require a desktop may be used.
> export-area:1:2:3:4
> export-filename:test.png
> export-do:
** (org.inkscape.Inkscape:34919): WARNING **: 22:47:56.120: Cannot parse export area '1'; use 'x0:y0:x1:y1'. Nothing exported.
>
I didn't provide any file-open:
but it seems to not be needed to reproduce.
Do I misunderstand the syntax? there some way or escaping or quoting?
What happened?
Got error about invalid export area.
What should have happened?
Should have defined an export area.
Inkscape Version and Operating System:
- Inkscape Version: Inkscape 1.0 (4035a4fb, 2020-05-01) Pango version: 1.43.0
- Operating System: macOS
- Operating System version: 10.15.4 (19E287)
Edited by Mattias Wadman