How can we handle the passed launch arguments?

Hi everyone,
 
I am trying to handle the passed arguments when I launch the app from command line but I could not get it working.
 
I created MyTestApp.app with new Mac Os X exporting feature.
 
I am launching it with the following command on a Mac Terminal:

open -a MyTestApp.app --args test=123

It launches perfectly.

 

In my main.lua for MyTestApp.app, I tried to handle it as follows :

 

local launchArgs = ...

launchArgs are always nil.

Any ideas?

I must admit I haven’t tested that :slight_smile:  I don’t think of Corona apps as being for the command line.

I’ll take a look and see what’s going on.

Hi Perry, is there any ( good :slight_smile: ) news on this issue?

This one turned out to be much more difficult than expected but I have a solution which will be available in Daily Builds next week when the dust has settled from the Public Release.

Hi Perry,

Public release has been announced and when I checked the release notes, I did not see anything related to this issue, am I missing it?

Thank you for your response.

I said it “will be available in Daily Builds […] when the dust has settled from the Public Release” … we’re working on restarting Daily Builds right now so hopefully it will be available soon.

I must admit I haven’t tested that :slight_smile:  I don’t think of Corona apps as being for the command line.

I’ll take a look and see what’s going on.

Hi Perry, is there any ( good :slight_smile: ) news on this issue?

This one turned out to be much more difficult than expected but I have a solution which will be available in Daily Builds next week when the dust has settled from the Public Release.

Hi Perry,

Public release has been announced and when I checked the release notes, I did not see anything related to this issue, am I missing it?

Thank you for your response.

I said it “will be available in Daily Builds […] when the dust has settled from the Public Release” … we’re working on restarting Daily Builds right now so hopefully it will be available soon.