GNOME Bugzilla – Bug 393764
command line parsing fails when swapping arguments
Last modified: 2007-01-07 16:19:09 UTC
to reproduce 1. get gnome-mag svn 2. apply patch #79532 (http://bugzilla.gnome.org/attachment.cgi?id=79532) 3. compile and install 4. run "magnifier --cursor-color=16711680 -v -m" and see that everything is fine 5. run "magnifier -v -m --cursor-color=16711680" and marvel the difference. actually, the parser does not alter any variables at all (if I am not mistaken). also, g_option_context_parse() returns true, meaning that it says it succeeded.
Created attachment 79596 [details] attempted testcase I tried to reproduce with a minimal test case, but did not succeed. Attaching my work here, hoping it may serve well.
your testcase works fine for me - was it supposed to demonstrate the problem ?
Matthias: No, to reproduce the problem, follow the initial comment - involves patching gnome-mag. I tried to forge a minimal testcase, but did not succeed in finding one. Attached my work here, just in case someone may find it useful.
I don't really have time to patch gnome-mag for debugging this. If the problem occurs in gnome-mag, but not in the equivalent test-case, chances are that it is a gnome-mag problem.
This was caused by a bug in the gnome-mag patch, see bug 337000 comment 29.