Skip to content

Commit

Permalink
fix(parameter): conflict between height and help
Browse files Browse the repository at this point in the history
  • Loading branch information
anhgelus committed Jun 3, 2023
1 parent bdebc37 commit 3004588
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3004588

Please sign in to comment.