20 lines
308 B
Go
20 lines
308 B
Go
|
package main
|
||
|
|
||
|
/*
|
||
|
this parses the command line arguements
|
||
|
|
||
|
this enables command line options from other packages like 'gui' and 'log'
|
||
|
*/
|
||
|
|
||
|
import (
|
||
|
"go.wit.com/dev/alexflint/arg"
|
||
|
)
|
||
|
|
||
|
var args struct {
|
||
|
ListRepos bool `arg:"--list-repos" help:"list all repositories"`
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
arg.MustParse(&args)
|
||
|
}
|