diff options
author | Jakob Unterwurzacher | 2016-11-01 18:59:34 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-11-01 19:00:45 +0100 |
commit | b527e205e231a7f0d5486b7593ba6b47cf09706d (patch) | |
tree | 2e726179e11397b16d151e4b61590723cf991d24 /cli_args.go | |
parent | d6678f73b41cef1f242ddd018c5c0c643b4595c3 (diff) |
main: rename "-f" to "-fg"
"-f" looks too much like "--force". The old variant is still
accepted for compatability.
Diffstat (limited to 'cli_args.go')
-rw-r--r-- | cli_args.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli_args.go b/cli_args.go index ad65fef..358a6a9 100644 --- a/cli_args.go +++ b/cli_args.go @@ -14,7 +14,7 @@ import ( // argContainer stores the parsed CLI options and arguments type argContainer struct { - debug, init, zerokey, fusedebug, openssl, passwd, foreground, version, + debug, init, zerokey, fusedebug, openssl, passwd, fg, version, plaintextnames, quiet, nosyslog, wpanic, longnames, allow_other, ro, reverse, aessiv, nonempty, raw64 bool masterkey, mountpoint, cipherdir, cpuprofile, extpass, @@ -89,7 +89,8 @@ func parseCliOpts() (args argContainer) { // Tri-state true/false/auto flagSet.StringVar(&opensslAuto, "openssl", "auto", "Use OpenSSL instead of built-in Go crypto") flagSet.BoolVar(&args.passwd, "passwd", false, "Change password") - flagSet.BoolVar(&args.foreground, "f", false, "Stay in the foreground") + flagSet.BoolVar(&args.fg, "f", false, "") + flagSet.BoolVar(&args.fg, "fg", false, "Stay in the foreground") flagSet.BoolVar(&args.version, "version", false, "Print version and exit") flagSet.BoolVar(&args.plaintextnames, "plaintextnames", false, "Do not encrypt file names") flagSet.BoolVar(&args.quiet, "q", false, "") |