diff options
| -rw-r--r-- | doProto.go | 2 | ||||
| -rw-r--r-- | main.go | 10 | ||||
| -rw-r--r-- | protoReformat.go | 2 |
3 files changed, 7 insertions, 7 deletions
@@ -44,7 +44,7 @@ func doProto(argvProto string) (string, error) { return "doClean() ran", nil } - if argv.ReFormat { + if argv.ReFormat || argv.Renumber { protoReformatComments(argvProto) // time.Sleep(5 * time.Second) protoReformat(argvProto) @@ -58,11 +58,11 @@ func main() { } else { // user is trying a specific proto file // check if it's ok to run autogenpb - s, err = doPrecheck(argv.Proto) - if err == nil { - // it's safe to run - s, err = doProto(argv.Proto) - } + // s, err = doPrecheck(argv.Proto) + // if err == nil { + // it's safe to run + s, err = doProto(argv.Proto) + // } } // safe exits back to your shell (with timing and toolkit close) diff --git a/protoReformat.go b/protoReformat.go index 77cc723..188bf66 100644 --- a/protoReformat.go +++ b/protoReformat.go @@ -576,8 +576,8 @@ func (msg *FormatMsg) formatVarLine(line string, dbg string) string { } msg.Counter += 1 if int(msg.Counter) != newint { + log.Info("COUNTER WAS WRONG", newint, id, vartype, varname, msg.Header) // panic("you can't count") - log.Info("counter is wrong", newint, id, msg.Header) } id = fmt.Sprintf("%d", msg.Counter) } |
