examples: Adding missing command-line processing in pcap example