Use expando instead of weakmap to cache the command line API