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