aboutsummaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-10-09 18:17:04 +0200
committerJakob Unterwurzacher2016-10-09 18:18:14 +0200
commit495479dc66efae688895aed8902d00f0350cdea7 (patch)
tree6cf5c3dd9bbbb0fe029732766c86d5283f2e7790 /mount.go
parentd3b78fea959dfb0e1c1f5079ae516303bdb9a0f8 (diff)
main: friendlier error message on wrong number of arguments
Before: Usage: gocryptfs [OPTIONS] CIPHERDIR MOUNTPOINT After: Wrong number of arguments (have 9, want 2). You passed: "-nosyslog" "." "asd" "-q" "ß" "asdf" "fg" "gh" "sdf" "asd fs\\dfg" Usage: gocryptfs [OPTIONS] CIPHERDIR MOUNTPOINT
Diffstat (limited to 'mount.go')
-rw-r--r--mount.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/mount.go b/mount.go
index 3157332..803b09b 100644
--- a/mount.go
+++ b/mount.go
@@ -26,10 +26,6 @@ import (
// Called from main.
func doMount(args *argContainer) int {
// Check mountpoint
- if flagSet.NArg() != 2 {
- tlog.Fatal.Printf("Usage: %s [OPTIONS] CIPHERDIR MOUNTPOINT", tlog.ProgramName)
- os.Exit(ErrExitUsage)
- }
var err error
args.mountpoint, err = filepath.Abs(flagSet.Arg(1))
if err != nil {