Move hard out of flag args and into command
This commit is contained in:
3
main.go
3
main.go
@@ -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 {
|
||||
|
Reference in New Issue
Block a user