initial import of cmdline functions

Signed-off-by: Bryan Smith <zarboz@gmail.com>