Support command completion.

At least for commands. Options not supported yet.