no warning on comments
This commit is contained in:
parent
be889b2f81
commit
20bf000e55
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue