aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-11-03 00:06:04 +0100
committerJakob Unterwurzacher2015-11-03 00:06:04 +0100
commit1ec0fa388d3cf6376ed37d5917c5316292045e8d (patch)
tree6dd02816da824786a552bd45ccd20bde5983168a /main.go
parentde56fe9e3503d98e359551072633c804794b94e1 (diff)
Update USAGE.txt
Also run go fmt
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.go b/main.go
index 3d9bed7..fef5aba 100644
--- a/main.go
+++ b/main.go
@@ -58,8 +58,8 @@ func initDir(dirArg string, plaintextNames bool) {
}
func usageText() {
- fmt.Printf("Usage: %s [OPTIONS] CIPHERDIR MOUNTPOINT\n", PROGRAM_NAME)
- fmt.Printf("\nOptions:\n")
+ fmt.Fprintf(os.Stderr, "Usage: %s [OPTIONS] CIPHERDIR MOUNTPOINT\n", PROGRAM_NAME)
+ fmt.Fprintf(os.Stderr, "\nOptions:\n")
flag.PrintDefaults()
}
@@ -83,7 +83,8 @@ func main() {
flag.BoolVar(&args.passwd, "passwd", false, "Change password")
flag.BoolVar(&args.foreground, "f", false, "Stay in the foreground")
flag.BoolVar(&args.version, "version", false, "Print version and exit")
- flag.BoolVar(&args.plaintextnames, "plaintextnames", false, "Do not encrypt file names")
+ flag.BoolVar(&args.plaintextnames, "plaintextnames", false,
+ "Do not encrypt file names - can only be used together with -init")
flag.StringVar(&args.masterkey, "masterkey", "", "Mount with explicit master key")
args.cpuprofile = flag.String("cpuprofile", "", "Write cpu profile to specified file")