analyze CLI complete, -p/s options, needs error checking