diff options
author | Jakob Unterwurzacher | 2016-01-24 18:20:04 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-01-24 18:20:04 +0100 |
commit | 9ecb489c66d9b7e681debc9b23756d8d43820d68 (patch) | |
tree | 99d9dd16ac5d529ee4e8a0d18924177388fc3946 /main.go | |
parent | 523e43068504fde769de7caf446c110c1e4204b2 (diff) |
Allow "-d" as an alis for "-debug", and "-quiet" as an alias for "-q"
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -144,6 +144,7 @@ func main() { // Parse command line arguments flagSet = flag.NewFlagSet(cryptfs.PROGRAM_NAME, flag.ExitOnError) flagSet.Usage = usageText + flagSet.BoolVar(&args.debug, "d", false, "") flagSet.BoolVar(&args.debug, "debug", false, "Enable debug output") flagSet.BoolVar(&args.fusedebug, "fusedebug", false, "Enable fuse library debug output") flagSet.BoolVar(&args.init, "init", false, "Initialize encrypted directory") @@ -153,7 +154,8 @@ func main() { flagSet.BoolVar(&args.foreground, "f", 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, "Quiet - silence informational messages") + flagSet.BoolVar(&args.quiet, "q", false, "") + flagSet.BoolVar(&args.quiet, "quiet", false, "Quiet - silence informational messages") flagSet.BoolVar(&args.diriv, "diriv", true, "Use per-directory file name IV") flagSet.BoolVar(&args.emenames, "emenames", true, "Use EME filename encryption. This option implies diriv.") flagSet.BoolVar(&args.gcmiv128, "gcmiv128", true, "Use an 128-bit IV for GCM encryption instead of Go's default of 96 bits") |