summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-08-11 23:26:49 +0200
committerJakob Unterwurzacher2018-08-11 23:26:49 +0200
commitec2fdc19cf9358ae7ba09c528a5807b6b0760f9b (patch)
tree1a9a26d9f70ac26f3df2c44a6e5ed6ff9108ab76 /main.go
parenteaa5aecd422bc4f6b01b6257383521ad512e08f7 (diff)
reverse mode: add --exclude option
https://github.com/rfjakob/gocryptfs/issues/235
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
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 != "" {