From 1e598e96fcd2ef53ab2ee1e2b408e4ebe920e59b Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 30 May 2017 19:01:32 +0200 Subject: main: add "-info" option Pretty-prints the config while stripping out sensitive (and uninteresting) data https://github.com/rfjakob/gocryptfs/issues/111 --- help.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'help.go') diff --git a/help.go b/help.go index 378c380..714fcbf 100644 --- a/help.go +++ b/help.go @@ -7,7 +7,7 @@ import ( ) const tUsage = "" + - "Usage: " + tlog.ProgramName + " -init|-passwd [OPTIONS] CIPHERDIR\n" + + "Usage: " + tlog.ProgramName + " -init|-passwd|-info [OPTIONS] CIPHERDIR\n" + " or " + tlog.ProgramName + " [OPTIONS] CIPHERDIR MOUNTPOINT\n" // helpShort is what gets displayed when passed "-h" or on syntax error. @@ -27,6 +27,7 @@ Common Options (use -hh to show all): -h, -help This short help text -hh Long help text with all options -init Initialize encrypted directory + -info Display information about encrypted directory -masterkey Mount with explicit master key instead of password -nonempty Allow mounting over non-empty directory -nosyslog Do not redirect log messages to syslog -- cgit v1.2.3