Only current problem is that the error message says error: twice (on the first line):
error: error: Found argument '--test' which wasn't expected, or isn't valid in this context
USAGE:
gnvim [FLAGS] [OPTIONS] [FILES]... [-- <ARGS>...]
For more information try --help
If this is an argument for nvim, try moving it after a -- separator.
I could do some string splitting to remove the double error: strings, but I doubt that's the best way. AFAIK it's caused by me using the description of the error here, and then calling exit() (which I think puts the error: part at the start of the description automatically). I could of course just put the usual message without the error: at the front into an &str (which is probably the best course of action; let me know what you think).
Any suggestions/feedback/etc. (especially on how to remove the extra error:) are appreciated.
See #99.
Only current problem is that the error message says
error:
twice (on the first line):I could do some string splitting to remove the double
error:
strings, but I doubt that's the best way. AFAIK it's caused by me using the description of the error here, and then callingexit()
(which I think puts theerror:
part at the start of the description automatically). I could of course just put the usual message without theerror:
at the front into an&str
(which is probably the best course of action; let me know what you think).Any suggestions/feedback/etc. (especially on how to remove the extra
error:
) are appreciated.