edited to follow the coding style guide
fixed the throw from --all-tags