ebnf2railroad icon indicating copy to clipboard operation
ebnf2railroad copied to clipboard

Supplying --no-target results in error

Open jasonvasquez opened this issue 1 year ago • 0 comments

When using a command such as the following, an error is generated: ebnf2railroad --write-style --no-target my-grammar.ebnf

TypeError: targetFilename?.endsWith is not a function
    at Object.run (/src/myproject/node_modules/ebnf2railroad/src/cli.js:118:38)
targetFilename?.endsWith is not a function

use --help for usage information

(line number may be off by a few there, as I've inserted some local debugging info)

I believe I see the issue, I'll open a PR momentarily.

jasonvasquez avatar May 11 '23 23:05 jasonvasquez