Skip to content

Commit

Permalink
Merge pull request ollama#322 from jmorganca/no-comment-warning
Browse files Browse the repository at this point in the history
no warning on comments
  • Loading branch information
mxyng authored Aug 10, 2023
2 parents 75d7d68 + 20bf000 commit 21e6197
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ func Parse(reader io.Reader) ([]Command, error) {
command.Name = string(fields[0])
command.Args = string(fields[1])
default:
// log a warning for unknown commands
log.Printf("WARNING: Unknown command: %s", fields[0])
if !bytes.HasPrefix(fields[0], []byte("#")) {
// log a warning for unknown commands
log.Printf("WARNING: Unknown command: %s", fields[0])
}
continue
}

Expand Down

0 comments on commit 21e6197

Please sign in to comment.