no warning on comments

This commit is contained in:
Michael Yang 2023-08-10 16:22:08 -07:00
parent be889b2f81
commit 20bf000e55

View file

@ -48,8 +48,10 @@ func Parse(reader io.Reader) ([]Command, error) {
command.Name = string(fields[0])
command.Args = string(fields[1])
default:
if !bytes.HasPrefix(fields[0], []byte("#")) {
// log a warning for unknown commands
log.Printf("WARNING: Unknown command: %s", fields[0])
}
continue
}