cli: support for frames, and limiting capture by number of frames.