[go: up one dir, main page]

CLI --actions="..." confused by trailing semicolon (1.2 beta 04-05)

Summary:

Adding a trailing semicolon (like programmers often do) to the semicolon-separated list of actions in the --actions="..." parameter, displays a confusing error message:

InkscapeApplication::parse_actions: could not find action for:

on terminal, though the whole CLI operation completes correctly.

Steps to reproduce:

Starting with a complete Window terminal CLI command:

"C:\Program Files\Inkscape\bin\inkscape" --batch-process --actions="select-all;object-stroke-to-path;" --export-filename=C99999.svg C99999_.svg
InkscapeApplication::parse_actions: could not find action for:

trying these variations

--actions="select-all;object-stroke-to-path;"     saw message

--actions="select-all;;object-stroke-to-path"     saw message

--actions="select-all;object-stroke-to-path"      no message

What happened?

Got error message that was unclear what I'd done wrong.

What should have happened?

  1. The error message could more clearly identify what has been specified wrongly.

  2. But since it is hard to complain about the specific action that is no action (empty,missing) it would be much nicer to just ignore the thing that isn't there - just skip the goof.

How would you say "if (action is empty) skip complaint" at inkscape-application.cpp ?

Or perhaps more clear checking token for empty at loop start?

Version info

Inkscape 1.2-beta (1b65182ce9, 2022-04-05)
Windows 10

And this is a minor CLI UI issue.