Fix completion helper to ignore command-line options

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>