From 0c16616117e9866cc49adc85738e3c9e3adf413a Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 10 Aug 2021 19:42:33 +0200 Subject: main: add testcases for convertToDoubleDash & parseCliOpts --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 9bd0c78..370feac 100644 --- a/main.go +++ b/main.go @@ -166,7 +166,7 @@ func main() { var err error // Parse all command-line options (i.e. arguments starting with "-") // into "args". Path arguments are parsed below. - args := parseCliOpts() + args := parseCliOpts(os.Args) // Fork a child into the background if "-fg" is not set AND we are mounting // a filesystem. The child will do all the work. if !args.fg && flagSet.NArg() == 2 { -- cgit v1.2.3