vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
542 stars 90 forks source link

Enable parsing of command line arguments #345

Closed jamadagni closed 1 year ago

jamadagni commented 1 year ago

This is a continuation of this SourceForge thread.

Command line parsing ability would certainly be useful to create multiple diagrams based on different inputs. Else we would need to write to some temporary file and then read in from there.

johncbowman commented 1 year ago

Use the -u option. Here are some examples:

https://sourceforge.net/p/asymptote/discussion/409349/thread/cc4b24d0b6/?limit=25#4283

https://tex.stackexchange.com/questions/656567/how-to-pass-code-to-asymptote-from-the-command-line/656688?noredirect=1#comment1636573_656688