From 29ea8a5409dd88843f186b1b835d2fc9a7af2bfb Mon Sep 17 00:00:00 2001
From: "Richard T. Carback III" <rick.carback@gmail.com>
Date: Fri, 6 Nov 2020 22:43:46 +0000
Subject: [PATCH] Fix typo

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

diff --git a/cmd/root.go b/cmd/root.go
index 7671feb73..bb3090095 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -574,7 +574,7 @@ func init() {
 
 	rootCmd.Flags().StringP("writeContact", "w",
 		"", "Write the contact file for this user to this file")
-	viper.BindPFlag("session", rootCmd.Flags().Lookup("session"))
+	viper.BindPFlag("writeContact", rootCmd.Flags().Lookup("writeContact"))
 
 	rootCmd.Flags().StringP("password", "p", "",
 		"Password to the session file")
@@ -606,7 +606,7 @@ func init() {
 
 	rootCmd.Flags().StringP("destfile", "",
 		"", "Read this contact file for the destination id")
-	viper.BindPFlag("session", rootCmd.Flags().Lookup("session"))
+	viper.BindPFlag("destfile", rootCmd.Flags().Lookup("destfile"))
 
 	rootCmd.Flags().UintP("sendCount",
 		"", 1, "The number of times to send the message")
-- 
GitLab