add cmdline.[ch]