aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli_args.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cli_args.go b/cli_args.go
index 0db5ba6..4f16cd4 100644
--- a/cli_args.go
+++ b/cli_args.go
@@ -91,6 +91,13 @@ func parseCliOpts() (args argContainer) {
"successful mount - used internally for daemonization")
flagSet.IntVar(&args.scryptn, "scryptn", configfile.ScryptDefaultLogN, "scrypt cost parameter logN. "+
"Setting this to a lower value speeds up mounting but makes the password susceptible to brute-force attacks")
+ // Ignored otions
+ var ignoredBool bool
+ ignoreText := "(ignored for compatability)"
+ flagSet.BoolVar(&ignoredBool, "rw", false, ignoreText)
+ flagSet.BoolVar(&ignoredBool, "nosuid", false, ignoreText)
+ flagSet.BoolVar(&ignoredBool, "nodev", false, ignoreText)
+ // Actual parsing
flagSet.Parse(os.Args[1:])
// "-openssl" needs some post-processing