summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-03-21 19:43:26 -0500
committerJeff Carr <[email protected]>2024-03-21 19:43:26 -0500
commit7a095d15667b683d310bd82215149bc748fcb9c9 (patch)
treeab43457d5ed3de84caa4fdfae43f2be288b3aae6 /argv.go
parentf09d0fbfa9a9ffb037943fecdab13f0e53212850 (diff)
add --recursive
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/argv.go b/argv.go
index 2d22dc7..cfdd3d4 100644
--- a/argv.go
+++ b/argv.go
@@ -7,19 +7,21 @@ package main
*/
type args struct {
- Repo string `arg:"positional" help:"go import path"`
- Work bool `arg:"--work" help:"make a work directory"`
- NoWork bool `arg:"--no-work" help:"does not make a go.work file"`
+ Repo string `arg:"positional" help:"go import path"`
+ Work bool `arg:"--work" help:"make a work directory"`
+ NoWork bool `arg:"--no-work" help:"do not make or modify the go.work file"`
+ DryRun bool `arg:"--dry-run" help:"show what would be run"`
+ Recursive bool `arg:"--recursive" help:"resursively clone all dependencies"`
}
func (a args) Description() string {
return `
-Example usage: "go-clone go.wit.com/apps/go-clone"
+This will recursively clone the sources for this app into a work/ directory:
-This will pull down the go sources and
-the repositories in the go.sum file using git clone`
+go-clone --recursive go.wit.com/apps/go-clone
+`
}
func (args) Version() string {
- return "go-clone " + VERSION
+ return "go-clone " + Version
}