sean0x42 / markdown-extract

Extract sections of a markdown file. Useful for automatically extracting changelogs
https://hub.docker.com/r/sean0x42/markdown-extract
MIT License
31 stars 7 forks source link

Exit with 1 if there are no matches #3

Closed brennerm closed 4 years ago

brennerm commented 4 years ago

The tool exits with an error code of 0 and prints No matches. when there are no matches which makes it unnecessarily difficult to determine whether the extraction worked. IMO it should return an error code != 0 by default but introducing a new CLI flag would work as well.

sean0x42 commented 4 years ago

Thanks for the feedback @brennerm. This should be a simple change, and I'm more than happy to work on it.