tjdevries / vim9jit

a vim9script -> lua transpiler (written in Rust)
MIT License
510 stars 21 forks source link

feat!: rework input argument flags #34

Closed dundargoc closed 9 months ago

dundargoc commented 9 months ago

Remove --dir flag as it's confusing to use. Adjust --outdir to create the directory name if it doesn't exist. Remove --file flag and make the filename a required input.

tjdevries commented 9 months ago

Hmmm, i don't think this handles everything we were handling before.

The main problem is that we have to generate things differently for autoload code vs regular runtime files, so there is some initial handling of that in the previous version that is lost.

dundargoc commented 9 months ago

Fair, but I also suspect that the --dir flag doesn't work or that it has a super special setup, and I think we need to rework it somehow. Would having a --mode or --type flag to specify the type of script work?