Treat difference between FreeBSD's sed and GNU's sed.
add cim subcommand 'for'
add help for some cim subcommands
process all the options
properly treat arguments