glib optioncontext: parsing short format arguments without space
@tpimh
Submitted by Twisted Pair in my Hair Link to original bug (#772933)
Description
I'm using OptionContext to parse arguments. One of option entries looks like this:
{ "import", 'i', 0, OptionArg.STRING_ARRAY, ref import_packages, "", "" }
When I run prog -i 1 -i 2 -i 3
everything is fine, but then I try to run prog -i1 -i2 -i3
it fails: error: Missing argument for -i
. I expect those two to be parsed correctly and be equivalent to each other.
Getopt usually handles short arguments with and without space the same way. Glib OptionContext does not.
Edited by Philip Withnall