Open RReverser opened 2 years ago
I get this as well. How is the command supposed to be run?
I've run into the same thing (on Windows).
It looks like running as cargo swag ./api.yaml --out-file ./src/api.rs
is interpreted as swag
being the source
path. If I run it as cargo-swag.exe ./api.yaml --out-file ./src/api.rs
then the program runs correctly. Hopefully this workaround helps!
@FlipWarthog Ohhh thanks. I've moved on and wrote my own generator for the specific usecase I had, but this would've been helpful before 😅
I'm trying to use it as per docs, but getting error at the stage of parsing arguments:
Am I missing something?