blob: 72215236957ffd57958b353335fa6a68fb2037a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package main
/*
this parses the command line arguements
this enables command line options from other packages like 'gui' and 'log'
*/
var argv args
type args struct {
Hosts []string `arg:"--hosts" help:"hosts to connect to"`
Uptime bool `arg:"--uptime" default:"true" help:"allow uptime checks for things like Kuma"`
Port int `arg:"--port" default:"8080" help:"specify a different default port"`
}
func (a args) Description() string {
return `
virtigo will help control your cluster of hypervisiors
go install go.wit.com/apps/virtigo@latest
`
}
func (args) Version() string {
return "virtigo " + Version
}
|