aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild/unix-time-to-fmt.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/unix-time-to-fmt.py b/build/unix-time-to-fmt.py
index d081797..026e55c 100755
--- a/build/unix-time-to-fmt.py
+++ b/build/unix-time-to-fmt.py
@@ -11,6 +11,10 @@ Default is '%Y-%b-%d' --> 2016-Jan-01
import sys, time
+if len(sys.argv) == 1:
+ print("unknown")
+ exit(0)
+
fmt = '%Y-%b-%d'
if len(sys.argv) > 2:
fmt = sys.argv[2]