aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-08-10 19:42:33 +0200
committerJakob Unterwurzacher2021-08-10 19:42:33 +0200
commit0c16616117e9866cc49adc85738e3c9e3adf413a (patch)
tree5030b1bad61e22870ad724299e9d0b3c2827882b /main.go
parent463f6e8962d87bf45dccd806822d40cfff335695 (diff)
main: add testcases for convertToDoubleDash & parseCliOpts
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
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 {