diff --git a/main.go b/main.go index def642c..caa311b 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,7 @@ import ( const ( input = "input" // Read info from user input env = "env" // Get param from env - version = "1.3.1" // Application version + version = "1.3.2" // Application version ) var ( @@ -158,6 +158,13 @@ func main() { debugMode = *isDebug // ------------------------- + // Check that using -version argument + if *showVersion == true { + println("Dron version:", version) + + return + } + c := config{} data, err := ioutil.ReadFile("./dron.yaml") @@ -185,13 +192,6 @@ func main() { return } - // Check that using -version argument - if *showVersion == true { - println("Dron version:", version) - - return - } - // Check the first argument exist var fArg string