Use overrideCommand instead of registerCommand.