diff options
author | Jakob Unterwurzacher | 2015-11-14 19:10:52 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-11-14 19:15:51 +0100 |
commit | 6736212b29bd54a0ed9778f1bbea49db03f43c06 (patch) | |
tree | 4d4ca145c256a643e2647bf37da65c7fd8e387a5 /main.go | |
parent | d69e0df6681f8cbb92690ef1d3730dc248c009a1 (diff) |
README: add beta badge and update text
Also, improve the help text.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -58,7 +58,8 @@ func initDir(dirArg string, plaintextNames bool) { } func usageText() { - fmt.Fprintf(os.Stderr, "Usage: %s [OPTIONS] CIPHERDIR MOUNTPOINT\n", PROGRAM_NAME) + fmt.Fprintf(os.Stderr, "Usage: %s -init [OPTIONS] CIPHERDIR\n", PROGRAM_NAME) + fmt.Fprintf(os.Stderr, " %s [OPTIONS] CIPHERDIR MOUNTPOINT\n", PROGRAM_NAME) fmt.Fprintf(os.Stderr, "\nOptions:\n") flagSet.PrintDefaults() } @@ -95,6 +96,7 @@ func main() { flagSet.IntVar(&args.notifypid, "notifypid", 0, "Send USR1 to the specified process after "+ "successful mount - used internally for daemonization") flagSet.Parse(os.Args[1:]) + if args.version { fmt.Printf("%s %s; on-disk format %d\n", PROGRAM_NAME, GitVersion, cryptfs.HEADER_CURRENT_VERSION) os.Exit(0) |