Comment 5 for bug 361237

Revision history for this message
Édouard Lopez (edouard-lopez) wrote :

I support the idea of having parameters to verbs, particularly on verb such FileSaveAs/FileSaveCopyAs (expected behavior is to provide a filename here).

BTW, the man page is also confusing as it state:

    inkscape [options] [filename ...]

and provide an option to specify input file (ok, I didn't read the last part)

    -f FILENAME, --file=FILENAME
                   Open specified document(s). Option string may be omitted, i.e. you can list the filenames without -f

So I run (WRONGLY):

    inkscape -z -f ./䖠-x45A0.svg --select=hanzi --select=pinyin --verb=SelectionUnion --verb=FileSaveCopyAs --verb=FileClose test-union-cli.svg

And got following error:

    ** (inkscape:27462): CRITICAL *: Inkscape::XML::Document sp_repr_read_file(const gchar*, const gchar*): assertion `Inkscape::IO::file_test( filename, G_FILE_TEST_EXISTS )' failed
    ** (inkscape:27462): CRITICAL *: Inkscape::XML::Document sp_repr_read_file(const gchar*, const gchar*): assertion `Inkscape::IO::file_test( filename, G_FILE_TEST_EXISTS )' failed
    ** (inkscape:27462): WARNING **: Specified document test-union-cli.svg cannot be opened (does not exist or not a valid SVG file)