Get command-line parameter in the new world of processing-java
in
Programming Questions
•
2 months ago
In the "
external editor" thread - - i learned that we now use the "processing-java" application to launch processing.
Now, at the bottom of the "
command line parameter" thread, there are examples how how to use
PApplet.args to access command line arguments.
Now, how do I put these together? Let's say I want to dynamically pass a display width to an applet called my_sketch that I invoke from the command-line: Well, that's no problem:
- processing-java --sketch=$PWD/my_sketch --output=$PWD/output --force --present
However, there is no obvious way to pass arguments to it
- processing-java --sketch=$PWD/my_sketch --output=$PWD/output --force --present width=800
does not work. processing-java complains
- I don't know anything about width=80.
there is no clear way to pass the arguments in.
Has anyone worked out how to do this yet?
Cheers,
Dan
1