Unverified Commit 21e6197c authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #322 from jmorganca/no-comment-warning

no warning on comments
parents 75d7d681 20bf000e
...@@ -52,8 +52,10 @@ func Parse(reader io.Reader) ([]Command, error) { ...@@ -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
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment