summaryrefslogtreecommitdiff
path: root/args.go
diff options
context:
space:
mode:
Diffstat (limited to 'args.go')
-rw-r--r--args.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/args.go b/args.go
index 88fcf53..f408586 100644
--- a/args.go
+++ b/args.go
@@ -28,3 +28,33 @@ func init() {
ERROR = log.NewFlag("ERROR", true, full, short, "toolkit errors")
}
+
+var argv args
+
+type args struct {
+ Width float64 `arg:"--width" default:"640" help:"window width"`
+ Height float64 `arg:"--height" default:"480" help:"window height"`
+ Filename string `arg:"--filename" help:"what .glsl file to render"`
+ DryRun bool `arg:"--dry-run" help:"show what would be run"`
+ GLdrift float32 `arg:"--drift" default:"0.01" help:"how fast things move around"`
+ // Fetch bool `arg:"--git-fetch" default:"false" help:"run 'git fetch' on all your repos"`
+}
+
+func (args) Version() string {
+ return "go-clone " + VERSION + " Built on " + BUILDTIME
+}
+
+func (a args) Description() string {
+ return `
+git clone go repositories
+
+Examples:
+ go-clone go.wit.com/apps/go-clone # simply try to git clone this
+ go-clone --recursive go.wit.com/apps/go-clone # recursively clone all the dependancies
+ go-clone --auto-work go.wit.com/apps/go-clone # if you are using a go.work file, recreate the go.work file
+ go-clone --go-reset # recreate every go.mod and go.sum file
+ go-clone --git-pull # run 'git pull' in every repo
+ go-clone --build # build every binary package
+ go-clone --install # install every binary package
+`
+}