import os import sys from rich import print from rich.columns import Columns if len(sys.argv) < 2: print("Usage: python columns.py DIRECTORY") else: directory = os.listdir(sys.argv[1]) columns = Columns(directory, equal=True, expand=True) print(columns)