We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e43ae7 commit 52b3147Copy full SHA for 52b3147
AseSync.hx
@@ -55,6 +55,7 @@ class AseSync {
55
}
56
57
public static function main_1() {
58
+ Sys.println("AceSync v" + tools.Macros.buildDate());
59
initMeta();
60
61
executableDir = Path.directory(Sys.programPath());
@@ -76,7 +77,7 @@ class AseSync {
76
77
default: 0;
78
79
if (del > 0) {
- args.splice(i, 2);
80
+ args.splice(i, del);
81
} else i++;
82
83
tools/Macros.hx
@@ -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