diff options
author | Jakob Unterwurzacher | 2015-11-03 00:06:04 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-11-03 00:06:04 +0100 |
commit | 1ec0fa388d3cf6376ed37d5917c5316292045e8d (patch) | |
tree | 6dd02816da824786a552bd45ccd20bde5983168a /main.go | |
parent | de56fe9e3503d98e359551072633c804794b94e1 (diff) |
Update USAGE.txt
Also run go fmt
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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") |