From 58592330dc33e194e55fa942d3f375124839f058 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 14 Nov 2015 21:25:10 +0100 Subject: Refactor cli argument handling Also, add the "-config" option for storing gocryptfs.conf outside of CIPHERDIR. --- masterkey.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'masterkey.go') diff --git a/masterkey.go b/masterkey.go index a1889b4..2062997 100644 --- a/masterkey.go +++ b/masterkey.go @@ -37,7 +37,8 @@ paper and store it in a drawer. `, hChunked) } -// Parse a hex-encoded master key that was passed on the command line +// parseMasterKey - Parse a hex-encoded master key that was passed on the command line +// Calls os.Exit on failure func parseMasterKey(masterkey string) []byte { masterkey = strings.Replace(masterkey, "-", "", -1) key, err := hex.DecodeString(masterkey) -- cgit v1.2.3