Allow completing long options

There was a bug where any string starting with '--' would never be
matched by tab completion.  This allows double dashed items to match
completions.