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
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 New Issue