zmq: parse receiver CLI opts in main

We shouldn't be parsing options from sys.argv() unless the main function
is being run.

Change-Id: Id6bae72b80ce35721f02323a7bf7713132a49ac9
Merge "zmq: parse receiver CLI opts in main"