jeanguyomarch / eovim

The Enlightened Neovim
https://github.com/jeanguyomarch/eovim/wiki
MIT License
193 stars 3 forks source link

No -O option #1

Closed francoisGuerret closed 6 years ago

francoisGuerret commented 6 years ago

please support -O, -o, -p vim option

jeanguyomarch commented 6 years ago

Mhh, these are actually difficult to implement with a normal arguments parser. Vim allows consider as equivalent the following:

eovim -p a b
eovim -p0 a b

From the efl getopt perspective, in the first case, a will be the short option for -p. The good solution would be to use -- to separate the arguments from the options:

eovim -p -- a b

But I concede this is a cumbersome notation. Would it be okay if -p (and the whole family) would be split into short options without argument (-p) that are equivalent to -p0 and long options --tabs that would require to explicitely provide the number of tabs/splits?

jeanguyomarch commented 6 years ago

I'll go with something like this, if this does not suit you, please let me know and feel free to re-open the issue.