summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-07 07:03:51 -0600
committerJeff Carr <[email protected]>2024-11-07 07:03:51 -0600
commit5abf602bf7491e415921cb68e058f7def18db2ad (patch)
tree39b6878286a477c3ab06cfb99c01e4756311dd68 /argv.go
parentd576aa8a25b9ee3606396c3e61cfc3c5f117b627 (diff)
rename to 'argv'; use standard -ldflagsv0.5.3
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/argv.go b/argv.go
index ec2a408..2d04a27 100644
--- a/argv.go
+++ b/argv.go
@@ -6,6 +6,8 @@ package main
this enables command line options from other packages like 'gui' and 'log'
*/
+var argv args
+
type args struct {
Repo string `arg:"positional" help:"go import path"`
NoWork bool `arg:"--no-work" default:"true" help:"do not make or modify the go.work file"`
@@ -28,5 +30,5 @@ This will recursively clone the app and all the build requirements:
}
func (args) Version() string {
- return "go-clone " + Version
+ return "go-clone " + VERSION
}