antmicro / tuttest

A simple Python utility for extracting documentation snippets from tutorials.
Apache License 2.0
13 stars 2 forks source link

Exit with error code when snippet not found #22

Closed fkokosinski closed 3 years ago

fkokosinski commented 3 years ago

Currently tuttest doesn't exit with error code when given snippet name wasn't found. For example:

$ tuttest example-file.rst non-existing-snippet`
non-existing-snippet

And $? is set to 0.

This PR changes it so that when given snippet name wasn't found, tuttest exits with error code 1.