Main.hx 424 B

12345678910111213141516
  1. macro function test() {
  2. trace(filterArgs(Sys.args()));
  3. return macro null;
  4. }
  5. function main() {
  6. test();
  7. trace(filterArgs(Sys.args()));
  8. }
  9. function filterArgs(args:Array<String>):Array<String> {
  10. if (args.length < 2) return args;
  11. // We're currently prepending that to all tests while moving to pretty errors by default
  12. if (args[0] == "-D" && args[1] == "message.reporting=classic") return args.slice(2);
  13. return args;
  14. }