Add cmd_main extension for clie.
This extension parse input buffere into argc and argv like c main method.