exit prints to STDERR
import sys
if len(sys.argv) != 2:
exit(f"Usage: {sys.argv[0]} NUMBER")
print(f"you sent in {sys.argv[1]}")
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
import sys
if len(sys.argv) != 2:
exit(f"Usage: {sys.argv[0]} NUMBER")
print(f"you sent in {sys.argv[1]}")