Merge pull request #322 from jmorganca/no-comment-warning
no warning on comments
This commit is contained in:
commit
21e6197c0b
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue