You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
234 B
Go

10 years ago
package main
import (
"flag"
"fmt"
"io"
"os"
)
func check(r io.Reader) {
_, err := parse(r)
if err != nil {
fmt.Fprintf(os.Stderr, "%s\n", err)
}
}
func main() {
flag.Parse()
if flag.NArg() == 0 {
check(os.Stdin)
}
}