source:
code/trunk/cmd/mai/flag.go@
63
Last change on this file since 63 was 63, checked in by , 17 months ago | |
---|---|
File size: 230 bytes |
Rev | Line | |
---|---|---|
[56] | 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") | |
[63] | 10 | flag.BoolVar(&verbose, "v", false, "Verbose logging") |
[56] | 11 | flag.Parse() |
12 | } |
Note:
See TracBrowser
for help on using the repository browser.