From 176245208d40a9ca2ec324be7863a22819de29bc Mon Sep 17 00:00:00 2001
From: Drew DeVault <sir@cmpwn.com>
Date: Tue, 21 May 2019 14:31:14 -0400
Subject: Use kebab-case for cred-cmds

---
 config/config.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'config')

diff --git a/config/config.go b/config/config.go
index d864d2c..d885402 100644
--- a/config/config.go
+++ b/config/config.go
@@ -119,11 +119,11 @@ func loadAccountConfig(path string) ([]AccountConfig, error) {
 		for key, val := range sec.KeysHash() {
 			if key == "folders" {
 				account.Folders = strings.Split(val, ",")
-			} else if key == "source_cred_cmd" {
+			} else if key == "source-cred-cmd" {
 				account.SourceCredCmd = val
 			} else if key == "outgoing" {
 				account.Outgoing = val
-			} else if key == "outgoing_cred_cmd" {
+			} else if key == "outgoing-cred-cmd" {
 				account.OutgoingCredCmd = val
 			} else if key == "from" {
 				account.From = val
-- 
cgit v1.2.3