arg parser working on cmdline and stdin, in proper order for arguments as well