Re: [haxe] pass arguemnts to main function

59 views
Skip to first unread message

Philippe Elsass

unread,
Jun 2, 2016, 11:34:39 AM6/2/16
to Haxe
Common approach is to pass that in a resource file:

On Thu, Jun 2, 2016 at 2:48 PM, Jack Lehman <cold...@gmail.com> wrote:
how to pass arguments to main as :
haxe -main test [value] ...

--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.



--
Philippe

Mark Knol

unread,
Jun 2, 2016, 4:14:17 PM6/2/16
to Haxe
As alternative you can use compiler defines.

haxe -main test -D myKey=myValue -D myOtherThing=5

Check out 

Philippe Elsass

unread,
Jun 2, 2016, 4:29:10 PM6/2/16
to Haxe
Ha, thanks I forgot that define can hold a value!

--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.



--
Philippe
Reply all
Reply to author
Forward
0 new messages