Move hard out of flag args and into command

This commit is contained in:
2024-08-16 09:38:35 +02:00
parent 1f21965288
commit 2c49b65502
4 changed files with 9 additions and 5 deletions

View File

@@ -32,13 +32,10 @@ var DirRegex, _ = regexp.Compile(`^(.+?)[/\\]sync$`)
var FileRegex, _ = regexp.Compile(`^sync$`)
var programName = os.Args[0]
var hard *bool
func main() {
recurse := flag.String("r", "", "recurse into directories")
file := flag.String("f", "", "file to read instructions from")
debug := flag.Bool("d", false, "debug")
hard = flag.Bool("h", false, "create hard links instead")
flag.Parse()
if *debug {