diff options
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -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 } |
