Implemented simple tcp client
[dcaegen2/collectors/hv-ves.git] / hv-collector-main / src / main / kotlin / org / onap / dcae / collectors / veshv / main / ArgBasedServerConfiguration.kt
index 6311b6c..4e614cd 100644 (file)
@@ -54,8 +54,8 @@ internal object ArgBasedServerConfiguration {
         try {
             parser.parse(options, args).run {
                 return ServerConfiguration(
-                        intValue(OPT_PORT, DefaultValues.PORT),
-                        stringValue(OPT_CONFIG_URL, DefaultValues.CONFIG_URL))
+                        stringValue(OPT_CONFIG_URL, DefaultValues.CONFIG_URL),
+                        intValue(OPT_PORT, DefaultValues.PORT))
             }
         } catch (ex: Exception) {
             throw WrongArgumentException(ex)