diff --git a/main.go b/main.go index 14dbfd4..4811475 100644 --- a/main.go +++ b/main.go @@ -87,6 +87,9 @@ func main() { flag.Parse() args := flag.Args() + if *resetFlag { + *gitFlag = true + } if len(args) < 3 { log.Printf("At least %d arguments are required", 3) @@ -136,6 +139,10 @@ func main() { return } } + if *resetFlag { + log.Printf("Files reset to their original state, nothing more to do") + return + } // Create the processor based on mode var proc processor.Processor