Hi ,
I am trying to pass arguments via the command line - and following the wiki suggestions to pass args after the --run command for example. However, I am getting an error from processing-java from the command line.
$ processing-java --sketch=my/sketch/folder --run 123 abc
Usage : processing cli [<options>]
Error : got unexpected extra arguments (123 abc)
glv
July 15, 2025, 7:21pm
2
Hello @blotto888 ,
What is the link to the wiki you are using?
Related topic:
Hello folks!
I used to used the Processing CLI for projects:
[image]
Processing 4.4.4 has change that and there is no processing-java.exe
Is there any official documentation on the recent changes to the Processing 4.4.4 CLI?
Where can I find proper usage instructions?
Future of this?
Reference:
GitHub:
opened 02:50PM - 11 Jul 25 UTC
closed 03:26PM - 11 Jul 25 UTC
enhancement
### Most relevant area for this enhancement?
Math, Accessibility
### Feature t… o enhance
I would also like processing-java command line option, I realize you may be working on it.
### Enhancement details
#### Enhancement description
Please add a processing-java.exe or .bat, I'm not sure if you have yet, please let me know where it is, I'd rather use the latest processing 4 with it.
#### Benefits
added security
#### Challenges
I use vim with processing-java, it would be nice to have that workflow for me, even in vscode possibly
#### Additional context
I'll check back here, I don't mind if you make as duplicate, I just want to know the path if it already exists, thanks!
### Would you like to help implement this enhancement?
Yes, I’d like to help with this
:)
Thanks for the links. So it seems processing-java will be removed for 4.4.5? Not sure then if the 4.4.4 version is WAI. Still curious to understand argument usage and how to properly pass it through. Via the Wiki - I seem to be using it as documented.
I did find this usage based on the PRs and tried that…
/Applications/Processing.app/Contents/MacOS/Processing cli --sketch=../../overlays/signal/mobile --run -- 123 abc
But this gives the same error - “got unexpected extra arguments…”
glv
July 15, 2025, 8:15pm
4
Window 10 and Processing 4.4.4 here.
I can’t find a wiki here:
Home · processing/processing4 Wiki · GitHub
Just this for the processing-java in older versions:
Command Line · processing/processing Wiki · GitHub
I was able to launch a sketch:
D:\Program_Portable\Processing-4.4.4>Processing.exe cli --sketch="D:\Users\GLV\Documents\P4\Game_1_0_0" --run
This did not return anything:
D:\Program_Portable\Processing-4.4.4>Processing.exe cli --help
I can’t comment any further on this.
:)
Hi @blotto888
processing-java
will stay it has been renamed to processing cli
on some platforms, on macOS it will stay processing-java
for a little while longer.
main
← toniab:main
opened 08:34AM - 28 Jun 25 UTC
**Resolves:** [Issue #1138](https://github.com/processing/processing4/issues/113… 8)
**Changes:** Using arguments.multiple() to pass the argument strings to Commander rather than defining each argument as a Clikt val in advance.
**Tests:** The following configs worked.
- run --args='cli --sketch="/Users/tonz/Documents/Processing/test space/sketch_Test" --run'
- run --args='cli --help'
**Warning:** When testing changes to this file, if you run into an error, try running:
rm -rf /[ YOUR REPOSITORY PATH ]/app/build/compose/tmp
**Question:** Should we nicely handle if they did not specify a required argument? Right now it errors out if no sketch is passed.
We fixed an issue with the CLI arguments in 4.4.5 so could you try that version to see if it fixes your issue?