• 0 Posts
  • 1 Comment
Joined 1Y ago
cake
Cake day: Jun 12, 2023

help-circle
rss

For example if you want to set an explicit exit code. Calling python scripts will usually result in an exit code 0 after the script is run. If you want to set a different exit code for example 1 to indicate some error occured you can do that via sys.exit(1).

Same thing applies to other languages of course.