gdbus-tool: Ignore unknown options for the 'emit' subcommand when completing
When completing, we parse the options that the user has typed so far. Up until now we've been doing this without ignoring unknown options. This leads to broken completions when the user has typed an incomplete parameter. For example, when doing the following: $ gdbus emit --session --obj<tab> We expect --object-path to be completed, but it is currently not. What happens is that we fail to parse the options, therefore don't act on --session and so don't connect to the session bus, then we early-exit because we need to know which bus to operate on for later completions. Instead we can ignore the half-completed --obj, parse --session, get connected to the bus and then move on to the later completion code. https://bugzilla.gnome.org/show_bug.cgi?id=793597
parent
03e86d00
Please register or sign in to comment