Rodrigo Girão Serrão 🐍🚀 @mathspp.com · Jan 28

When writing CLIs and scripts for the terminal, use `sys.exit` to set the exit code of your program. ✅ An exit code of 0 means success; your program terminated without any issues. ❌ Any other integer exit code means “error”.

1 likes 1 replies

?

Replies

Xavier G. · Jan 28

Worth mentioning the exit code should be kept below 255? System-wise, only "the least significant 8 bits" are kept.