blob: 93b4f422a4552e5fe62df98525b5d4c675de1be5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  | 
package main
var argv args
type args struct {
	Test      *EmptyCmd `arg:"subcommand:test"                      help:"test repomap"`
	ListRepos bool      `arg:"--list-repos" help:"list all repositories"`
	Port      int       `arg:"--port" default:"2520" help:"port to run on"`
	RepoMap   string    `arg:"--repomap" default:"/etc/gowebd/repomap" help:"repomap file"`
	Hostname  string    `arg:"--hostname" default:"go.wit.com" help:"hostname to use"`
}
type EmptyCmd struct {
}
  |