From ec3545f119606d5c89e12115e60e15b1804c375e Mon Sep 17 00:00:00 2001 From: Les De Ridder Date: Sun, 16 Oct 2016 01:27:28 +0200 Subject: [PATCH] Fix option parsing --- source/app.d | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/app.d b/source/app.d index 269660a..73503ab 100644 --- a/source/app.d +++ b/source/app.d @@ -13,23 +13,22 @@ void main(string[] args) { //TODO: Make tag provider(s) configurable - if(args.length < 2) + if(args.length < 3) { stderr.writeln("usage: dtagfs [-f] [-o option[,options...]]"); return; } - auto source = args[0]; - auto mountPoint = args[1]; + auto source = args[1]; + auto mountPoint = args[2]; TagProvider[] tagProviders; string[] mountOptions; bool fork; arraySep = ","; - auto otherArgs = args[2..$]; auto options = getopt( - otherArgs, + args, "o", &mountOptions, "f|fork", &fork