Add a cmd line version, can be used by '|'