Add -l option to enable command logging.