Add license
add command line parsing

Signed-off-by: cheesinglee <cheesinglee@gmail.com>