Skip to content

Commit 3868d76

Browse files
committed
fix flag bug
1 parent abff3a8 commit 3868d76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
func main() {
1515
filePath := flag.String("f", "text.txt", "file path to read from")
16-
16+
flag.Parse()
1717
//Open file
1818
f, err := os.OpenFile(*filePath, os.O_RDONLY, 0644)
1919
if err != nil {

0 commit comments

Comments
 (0)