Command Line arguments for AIR Run/Debug

Anyone know of a way to pass command line arguments to an air application through the Run Configuration?  adl supports this using -- and then the command line arguments, but it looks as though the Run configuration dialog only allows for adl arguments to be passed in.

5 comments
Comment actions Permalink

Here it is in the IntelliJ IDEA 11.1 (Flash App run configuration). Similar option in the AIR run configuration in Intellij IDEA 11.0 and earlier. Why haven't you found it, i.e. can we make anything more obvious?
Untitled.png

0
Comment actions Permalink

works great for desktop, but how about for an app running in a mobile emulator?

0
Comment actions Permalink

What's the use case passing parameters to the mobile emulator? There's no such ability for a real device, is there?

0
Comment actions Permalink

It's not so much about the emulation of the device as it is the development process/flow that the IDE supports.  

The convenience of being able to pass configuration information through the command line is much quicker for the developer than editing files, possibly having to recompile and re-run.  Take the simple case of setting up a "debug" mode.  Sure i's stored and read in from a config file, but to quickly enable a command line parameter overrides the config property.  It's the same concept used by Ant, Maven, etc.

For an air app, which I am testing on potentially multiple devices from the same code base, being able to pass information quickly is key to me.  The emulator is helpful, but altering screen size is only one piece of the puzzle.  The emulator is still lacking in a numbe rof areas, Capabilities are reported incorrectly for the device, etc.

0
Comment actions Permalink

You can open corresponding request in out issue tracker. We'll watch if it collects a lot of votes/comments.

0

Please sign in to leave a comment.