speedata / publisher

speedata Publisher - a professional database Publishing system
https://www.speedata.de/
GNU Affero General Public License v3.0
296 stars 36 forks source link

option for a clean run? #382

Closed pr-apes closed 2 years ago

pr-apes commented 2 years ago

@pgundlach,

I wonder whether there could be an option for a clean run (something like sp [run] --clean).

I know that sp && sp clean could achieve the same, but as long as no --outputdir is invoked.

With sp --outputdir %USERPROFILE%\Desktop, both publisher.pdf and publisher.protocol end in that directory.

From what I experience, I see no difference in running sp clean or sp clean --outputdir %USERPROFILE%\Desktop (both files are kept in the output directory).

Is that possible or have I overlooked something in the docs?

Many thanks for your help.

pgundlach commented 2 years ago

Sounds like a bug. I'll take a look, thank you.

That said, I don't think there is a workaround at the moment.

pgundlach commented 2 years ago

There is a workaround:

sp --wd %USERPROFILE%\Desktop clean

should work. This removes everything but the .pdf file.

pr-apes commented 2 years ago

Many thanks for the workaround, @pgundlach.

pgundlach commented 2 years ago

I'll close this as there is a workaround

pr-apes commented 2 years ago

Fine, but if not fixed, it should be documented.