Remove duplicated flags since it looks ugly in --help

develop
trivernis 5 years ago
parent ee3e75640c
commit 8fca0a63de

@ -41,9 +41,7 @@ var decryptImage bool
func main() { func main() {
encryptFlags := flag.NewFlagSet("encrypt", flag.ContinueOnError) encryptFlags := flag.NewFlagSet("encrypt", flag.ContinueOnError)
decryptFlags := flag.NewFlagSet("decrypt", 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.") 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.") 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(&inputFile, "in", "input.txt","The file with the input data.")
encryptFlags.StringVar(&outputFile, "out", "out.png", "The output filename for the image.") encryptFlags.StringVar(&outputFile, "out", "out.png", "The output filename for the image.")

Loading…
Cancel
Save