astroport/g1sms/tools/4LETTER.scroll.py

21 lines
367 B
Python
Raw Normal View History

2020-05-01 15:19:51 +02:00
#!/usr/bin/env python
import sys
import fourletterphat
# if bad number of arguments...
if len(sys.argv) != 2:
# display command usage
print("""
Usage:
python 4LETTER.scroll.py "message a afficher"
""")
# exit with status code error
exit(1)
# Get message from arguments
message = sys.argv[1]
fourletterphat.scroll_print( message )