summaryrefslogtreecommitdiff
path: root/cli_args.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-03-31 14:33:02 +0200
committerJakob Unterwurzacher2019-03-31 14:33:02 +0200
commit8f2723b387fd3a4f575109a42d7c91059ebfe3fa (patch)
tree91cd8795366ac60557b9c563d9e0a327d22ebb41 /cli_args.go
parentec17445b996e7a2dc3b753963ea329881430e27b (diff)
Allow "nofail" for /etc/fstab use
Diffstat (limited to 'cli_args.go')
-rw-r--r--cli_args.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli_args.go b/cli_args.go
index c434abb..f1cefb4 100644
--- a/cli_args.go
+++ b/cli_args.go
@@ -212,6 +212,9 @@ func parseCliOpts() (args argContainer) {
flagSet.DurationVar(&args.idle, "idle", 0, "Auto-unmount after specified idle duration (ignored in reverse mode). "+
"Durations are specified like \"500s\" or \"2h45m\". 0 means stay mounted indefinitely.")
+ var nofail bool
+ flagSet.BoolVar(&nofail, "nofail", false, "Ignored for /etc/fstab compatibility")
+
var dummyString string
flagSet.StringVar(&dummyString, "o", "", "For compatibility with mount(1), options can be also passed as a comma-separated list to -o on the end.")
// Actual parsing