mirror of
https://github.com/vbatts/dedupe-linker.git
synced 2025-02-06 20:33:32 +00:00
main: simple Usage description and add a go modules file
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
784424af92
commit
022dad64e7
2 changed files with 9 additions and 0 deletions
3
go.mod
Normal file
3
go.mod
Normal file
|
@ -0,0 +1,3 @@
|
|||
module github.com/vbatts/dedupe-linker
|
||||
|
||||
go 1.20
|
6
main.go
6
main.go
|
@ -32,6 +32,12 @@ func init() {
|
|||
if os.Getenv("VARBASEDIR") != "" {
|
||||
varBaseDir = filepath.Clean(os.Getenv("VARBASEDIR"))
|
||||
}
|
||||
|
||||
flag.Usage = func() {
|
||||
fmt.Fprintf(flag.CommandLine.Output(), "Usage of %s:\n", os.Args[0])
|
||||
fmt.Fprintf(flag.CommandLine.Output(), "\nThis app will make hardlinks of a directory tree, to a content addressible collection in the 'basedir'\n\n")
|
||||
flag.PrintDefaults()
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
|
Loading…
Reference in a new issue