Created
July 23, 2019 23:31
-
-
Save nileshsimaria/64e0ee8d6f38095684a184c0f400927f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
) | |
var ( | |
file = flag.String("file", "", "file-name") | |
count = flag.Int("count", 2, "count params") | |
repeat = flag.Bool("repeat", false, "Repeat execution") | |
) | |
func main() { | |
flag.Parse() | |
fmt.Println(flag.Args()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment