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.Name = string(fields[0])
|
||||||
command.Args = string(fields[1])
|
command.Args = string(fields[1])
|
||||||
default:
|
default:
|
||||||
// log a warning for unknown commands
|
if !bytes.HasPrefix(fields[0], []byte("#")) {
|
||||||
log.Printf("WARNING: Unknown command: %s", fields[0])
|
// log a warning for unknown commands
|
||||||
|
log.Printf("WARNING: Unknown command: %s", fields[0])
|
||||||
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue