Better command line input for p2p program