theholynoob 4 Posted April 29, 2020 How do I accept command line arguments, I know how to pass them in but how do I read them in my code? An example would be fantastic, I'm pretty sure I need to read in from STD/I but can't get it working.
Hashtag 8900 Posted April 29, 2020 java -jar ... -script "My script" -params enter your "parameters here" onStart(String[] params) { } Now the variable params consists of { "enter", "your", "parameters here" }
theholynoob 4 Author Posted April 30, 2020 19 hours ago, Hashtag said: java -jar ... -script "My script" -params enter your "parameters here" onStart(String[] params) { } Now the variable params consists of { "enter", "your", "parameters here" } Thanks a ton!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.