elm version of a command line tool i wrote a long time ago—incomplete