From ec2fdc19cf9358ae7ba09c528a5807b6b0760f9b Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 11 Aug 2018 23:26:49 +0200 Subject: reverse mode: add --exclude option https://github.com/rfjakob/gocryptfs/issues/235 --- main.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index 24f16bd..f423cd1 100644 --- a/main.go +++ b/main.go @@ -212,6 +212,11 @@ func main() { // "-reverse" implies "-aessiv" if args.reverse { args.aessiv = true + } else { + if args.exclude != nil { + tlog.Fatal.Printf("-exclude only works in reverse mode") + os.Exit(exitcodes.ExcludeError) + } } // "-config" if args.config != "" { -- cgit v1.2.3