21 lines
367 B
Python
Executable File
21 lines
367 B
Python
Executable File
#!/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 )
|
|
|