import sys import pyfiglet # check if executed without text and print help if len(sys.argv) < 2: print("Usage: python c.py 'text to be converted'") sys.exit(1) text = " ".join(sys.argv[1:]) f = pyfiglet.figlet_format(text) print(f)