How to send an argument when using processing-java

Hello @paulstgeorge,

And Happy New Year!

Hopefully something here can help.
Keep in mind that there are differences between W10 and macOS.

See:
CLI: `--help` not working on Windows 10/11 · Issue #1306 · processing/processing4 · GitHub

W10 command-line:

D:\>processing cli --sketch="D:\Users\GLV\Documents\P4\cli_args_1_0_0" --run test 123 3.1415927

This works for Processing 4.4.10 and W10:

// This is what I used for Windows 10 Processing 4.4.10:
// D:\>processing cli --sketch="D:\Users\GLV\Documents\P4\cli_args_1_0_0" --run test 123 3.1415927
  
void setup()
  {
  size(300, 300);
  background(255, 255, 0);
  fill(0);
  textSize(24); 
  
  // For testing only since you don't have a console for errors in this example
  //String args [] = {"test", "123", "3.141592"}; 
  
  if (args != null) 
    {
    background(0, 255, 0);
    fill(0);
    textSize(24);
    String s = "Arguments passed: " + args.length + '\n';
    for(int i = 0; i<args.length; i++)
      {
      s = s+ args[i] + '\n';  
      }
    text(s, 20, 20, width-20, height-20);  
    }
  noLoop();  
  }

processing-java < Try this in place of this for your environment:
processing cli

I do not have Processing 4.4.7 and a macOS to test this on and using Processing 4.4.10.

Can you try this with version 4.4.7 and 4.4.10 on your macOS?
processing cli may work with Processing 4.4.7… give it a try!

Be mindful of folder you are working from:
Environment / Processing.org
Alternate Processing Editor Using processing-java.exe on the Command line - #8 by svan

:)