haxelib: Handle command line arguments appropriately

Fixes #2242