Skip to content

Commit 09dd82e

Browse files
authored
Exit with exit code 1 when command not found (#129)
1 parent acded10 commit 09dd82e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tldr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,11 @@ def main():
414414
options.language
415415
)
416416
if not result:
417-
print((
417+
sys.exit((
418418
"`{cmd}` documentation is not available. "
419419
"Consider contributing Pull Request to "
420420
"https://github.com/tldr-pages/tldr"
421-
).format(cmd=command), file=sys.stderr)
421+
).format(cmd=command))
422422
else:
423423
output(result)
424424
except URLError as e:

0 commit comments

Comments
 (0)