From 9191b2af241baa83b773fc1e9059d6b93f9a0b2b Mon Sep 17 00:00:00 2001 From: beepboopbelong Date: Mon, 13 Apr 2020 19:47:10 +0200 Subject: [PATCH] Fixed a small bug where -h would be interpreted as a url --- source/app.d | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/app.d b/source/app.d index 3986870..1c932f7 100644 --- a/source/app.d +++ b/source/app.d @@ -30,6 +30,13 @@ void main(string[] args) if(args.length == 2) { + // -h arg + if(args[1] == "-h") + { + printHelp(); + return; + } + // Direct link was supplied string url = args[1];