source:
code/trunk/cmd/simplytranslate/flag.go@
55
Last change on this file since 55 was 55, checked in by , 17 months ago | |
---|---|
File size: 198 bytes |
Rev | Line | |
---|---|---|
[55] | 1 | // Set up a basic command line flags parsing |
2 | package main | |
3 | ||
4 | import ( | |
5 | "flag" | |
6 | ) | |
7 | ||
8 | func parseFlags() { | |
9 | var configfile string | |
10 | flag.StringVar(&configfile, "f", "", "Configuration file") | |
11 | flag.Parse() | |
12 | } |
Note:
See TracBrowser
for help on using the repository browser.