From 8fca0a63de210fa5a97fbbe576981e78a966c1bf Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 16 Feb 2020 10:04:03 +0100 Subject: [PATCH] Remove duplicated flags since it looks ugly in --help --- cryptpng.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cryptpng.go b/cryptpng.go index 19d65e5..be50737 100644 --- a/cryptpng.go +++ b/cryptpng.go @@ -41,9 +41,7 @@ var decryptImage bool func main() { encryptFlags := flag.NewFlagSet("encrypt", flag.ContinueOnError) decryptFlags := flag.NewFlagSet("decrypt", flag.ContinueOnError) - encryptFlags.StringVar(&imageFile, "img", "image.png", "The path of the png file.") encryptFlags.StringVar(&imageFile, "image", "image.png", "The path of the png file.") - decryptFlags.StringVar(&imageFile, "img", "image.png", "The path of the png file.") decryptFlags.StringVar(&imageFile, "image", "image.png", "The path of the png file.") encryptFlags.StringVar(&inputFile, "in", "input.txt","The file with the input data.") encryptFlags.StringVar(&outputFile, "out", "out.png", "The output filename for the image.")