Haxe command line argument parsing

Posted on June 19, 2014

I`m planning to make a game where the user will be interacting with shells, so I need to be able to parse some complex commands like

testcmd -testbool -testint 2 -testfloat 3.455324 -teststringlist what, are, we, testing, already?

I couldn’t find anything written in Haxe that would allow me to parse command line arguments, so I turned to C++. Pretty quickly I found CLAP, and I decided to port it to Haxe. Took me a day, but worth it. Here’s the result: https://github.com/Ohmnivore/HxCLAP