From 3004588c453b03c105bfa5e41d5e84c74c81f4ef Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sat, 3 Jun 2023 17:41:13 +0200 Subject: [PATCH] fix(parameter): conflict between height and help --- README.md | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 87a069b..24ba091 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ This application takes two parameters: It has also another parameters: - `-o string` - Set the output file (if it does not give, no output in file) - `-d (0,1,2)` - Set the difficulty or 0 by default (0 = easy, 1 = hard, 2 = hardcore) -- `-h` - Show the help +- `-help` - Show the help ## Technologies diff --git a/main.go b/main.go index 12ec381..e86beef 100644 --- a/main.go +++ b/main.go @@ -25,7 +25,7 @@ func main() { height0 := regexp.MustCompile(`-h [0-9]+`) output0 := regexp.MustCompile(`-o [0-9a-zA-Z/.\-_]+`) difficulty0 := regexp.MustCompile(`-d [0-9]+`) - help0 := regexp.MustCompile(`-h`) + help0 := regexp.MustCompile(`-help`) unWidth := widthO.FindString(cli) unHeight := height0.FindString(cli) unOutput := output0.FindString(cli)