Specify output filename on command line

0 votes
asked May 7 in Wanted features by anonymous
Could you please consider making it possible to specify the exact output filename on the command line, similar to gcc option -o. This would make it easier to integrate plantuml in a build pipeline.

1 Answer

0 votes
answered May 7 by The-Lu (57,460 points)

Hello A., and all,

  • What is your use-case?

For example you can use:

cat filename.puml | java -jar plantuml.jar -pipe > anotherfilename.png

See also doc. here:


commented May 8 by Todd Musheno (2,610 points)

I know what he is getting at...

Shell pipes do not work with some build pipelines (it does with a lot of them out there)...

So effectively... how does one get this to work without the "|" and ">" characters.

Or... how do you specify input and output files in the command line.

Also using shell hacks like what you posted is an antipattern in pipelines.