Run.hx 382 B

1234567891011121314151617
  1. class Run {
  2. public static function main() {
  3. var args = Sys.args();
  4. var currentDir = args.pop(); // current directory
  5. switch( args[0] ) {
  6. case null:
  7. case "pak":
  8. var res = args[1];
  9. if( res == null ) res = "res";
  10. hxd.fmt.pak.Build.make(currentDir + res, currentDir + "res");
  11. case cmd:
  12. Sys.println("Don't know how to run '"+cmd+"'");
  13. }
  14. }
  15. }