From 23b64794a4675e157c46f0f031605dff45d353f8 Mon Sep 17 00:00:00 2001
From: Aya Morisawa <AyaMorisawa4869@gmail.com>
Date: Mon, 19 Nov 2018 12:58:58 +0900
Subject: [PATCH] Call main at the end (#3317)

---
 src/index.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/index.ts b/src/index.ts
index 4ecc2c016f..2054fd696d 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -42,8 +42,6 @@ program
 	.parse(process.argv);
 //#endregion
 
-main();
-
 /**
  * Init process
  */
@@ -246,3 +244,5 @@ process.on('exit', code => {
 });
 
 //#endregion
+
+main();