Endilll/vapoursynth-preview

command line option -a doesn't match vspipe's behavior

Opened this issue · 3 comments

The current behavior of -a (passing command line to the script via sys.argv is incompatible with that of vspipe, which makes portable scripts impossible.

Another drawback is that sometimes you will have to double escape the arguments (i.e. when passing a value including a \). I think vspipe's -a is much nicer, and we don't need to bother with using shlex.split to reparse the command line.

I have a rough patch ready, but, before sending it in, I'd like to gather some opinions on this issue as it's an incompatible change.

What is available now is a feature contributed by @wallace11, who considered vspipe's approach syntactically ugly. As for me, I don't have strong preference for any of them, and I don't see why VSP can't provide both. One more point I'd like to make is that vspipe-style arguments should use a key different to -a to prevent confusion of VSP users who have been using it.

-g and --global-vars, maybe?
Enabling autocompletion support for your use-case is sure a strong point.