BNFC / bnfc

BNF Converter
http://bnfc.digitalgrammars.com/
586 stars 165 forks source link

Options parsing: `-p` in `--ocaml` leads to bogus error #251

Closed andreasabel closed 5 years ago

andreasabel commented 5 years ago

With misspelled option (-p instead of -d)

bnfc --ocaml -m -p Issue204.cf 

reports

Missing grammar file
usage: bnfc [--version] [--help] <target language> [<args>] file.cf

However, -p is not a valid option for the ocaml backend.