Update flags.go

This commit is contained in:
gilfoyle97
2022-02-13 12:44:57 +01:00
committed by GitHub
parent 011e28a2e9
commit dfe2a019a3
+4 -2
View File
@@ -28,6 +28,7 @@ import (
)
//Input struct
//It contains all the possible options
type Input struct {
Version bool
Delay int
@@ -54,8 +55,9 @@ type Input struct {
Errors bool
}
//ScanFlag defines all the switches taken
//as input and return them.
//ScanFlag defines all the options taken
//as input and scan them, then it returns
//an Input struct.
func ScanFlag() Input {
versionPtr := flag.Bool("version", false, "Print the version.")