Skip to content

Commit 52b3147

Browse files
Tool now prints its build date; fixed argument-less params skipping the next one.
1 parent 7e43ae7 commit 52b3147

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

AseSync.hx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class AseSync {
5555
}
5656

5757
public static function main_1() {
58+
Sys.println("AceSync v" + tools.Macros.buildDate());
5859
initMeta();
5960

6061
executableDir = Path.directory(Sys.programPath());
@@ -76,7 +77,7 @@ class AseSync {
7677
default: 0;
7778
}
7879
if (del > 0) {
79-
args.splice(i, 2);
80+
args.splice(i, del);
8081
} else i++;
8182
}
8283

tools/Macros.hx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package tools;
2+
3+
/**
4+
* ...
5+
* @author YellowAfterlife
6+
*/
7+
class Macros {
8+
public static macro function buildDate() {
9+
var now = Date.now();
10+
var nows = DateTools.format(now, "%Y-%m-%d");
11+
return macro $v{nows};
12+
}
13+
}

0 commit comments

Comments
 (0)