aboutsummaryrefslogtreecommitdiff
path: root/cli_args.go
diff options
context:
space:
mode:
Diffstat (limited to 'cli_args.go')
-rw-r--r--cli_args.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli_args.go b/cli_args.go
index 1ece378..058f932 100644
--- a/cli_args.go
+++ b/cli_args.go
@@ -255,16 +255,16 @@ func parseCliOpts(osArgs []string) (args argContainer) {
}
}
// "-forcedecode" only works with openssl. Check compilation and command line parameters
- if args.forcedecode == true {
- if stupidgcm.BuiltWithoutOpenssl == true {
+ if args.forcedecode {
+ if stupidgcm.BuiltWithoutOpenssl {
tlog.Fatal.Printf("The -forcedecode flag requires openssl support, but gocryptfs was compiled without it!")
os.Exit(exitcodes.Usage)
}
- if args.aessiv == true {
+ if args.aessiv {
tlog.Fatal.Printf("The -forcedecode and -aessiv flags are incompatible because they use different crypto libs (openssl vs native Go)")
os.Exit(exitcodes.Usage)
}
- if args.reverse == true {
+ if args.reverse {
tlog.Fatal.Printf("The reverse mode and the -forcedecode option are not compatible")
os.Exit(exitcodes.Usage)
}