diff options
| author | Jeff Carr <[email protected]> | 2024-11-07 07:03:51 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-07 07:03:51 -0600 |
| commit | 5abf602bf7491e415921cb68e058f7def18db2ad (patch) | |
| tree | 39b6878286a477c3ab06cfb99c01e4756311dd68 /argv.go | |
| parent | d576aa8a25b9ee3606396c3e61cfc3c5f117b627 (diff) | |
rename to 'argv'; use standard -ldflagsv0.5.3
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 } |
