From a4634ed378ffb2601c00cf6aca15dea11df6bbcd Mon Sep 17 00:00:00 2001 From: Elliott Minns Date: Tue, 19 Apr 2016 00:03:20 +0100 Subject: [PATCH] Added port argument --- Sources/Application.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/Application.swift b/Sources/Application.swift index 10f50ce..881c66b 100644 --- a/Sources/Application.swift +++ b/Sources/Application.swift @@ -164,6 +164,10 @@ extension BlackfishApp { if let portInt = Int(portString) { port = portInt } + } else if secondArg == "--port" { + if let portInt = Int(Process.arguments[2]) { + port = portInt + } } }