23 lines
425 B
Go
23 lines
425 B
Go
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 {
|
|
Demo string `arg:"positional" help:"this is just a demo"`
|
|
}
|
|
|
|
func (a args) Description() string {
|
|
return `
|
|
This basicwindow example demonstrates multiple windows
|
|
`
|
|
}
|
|
|
|
func (args) Version() string {
|
|
return "basicwindow " + VERSION
|
|
}
|