Support opening files from command line

The implementation also provides support for limiting
the maximum number of read packets by using the -l
option.

The next step is obviously to implement some ranging
capabilities (e.g. 1000:2000). To be continued.