Revert pointer molestation
This commit is contained in:
16
main.go
16
main.go
@@ -35,18 +35,18 @@ func main() {
|
|||||||
// source,target,force?
|
// source,target,force?
|
||||||
log.SetFlags(log.Lmicroseconds)
|
log.SetFlags(log.Lmicroseconds)
|
||||||
|
|
||||||
recurse := *flag.String("r", "", "recurse into directories")
|
recurse := flag.String("r", "", "recurse into directories")
|
||||||
file := *flag.String("f", "", "file to read instructions from")
|
file := flag.String("f", "", "file to read instructions from")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
log.Printf("Recurse: %s", recurse)
|
log.Printf("Recurse: %s", *recurse)
|
||||||
log.Printf("File: %s", file)
|
log.Printf("File: %s", *file)
|
||||||
|
|
||||||
var instructions []LinkInstruction
|
var instructions []LinkInstruction
|
||||||
if recurse != "" {
|
if *recurse != "" {
|
||||||
instructions, _ = ReadFromFilesRecursively(recurse)
|
instructions, _ = ReadFromFilesRecursively(*recurse)
|
||||||
} else if file != "" {
|
} else if *file != "" {
|
||||||
instructions, _ = ReadFromFile(file)
|
instructions, _ = ReadFromFile(*file)
|
||||||
} else if len(os.Args) > 1 {
|
} else if len(os.Args) > 1 {
|
||||||
instructions, _ = ReadFromArgs()
|
instructions, _ = ReadFromArgs()
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user