# Grapevine A simple peer-to-peer gossip protocol handler ## How to run Using Cargo, pass the necessary command-line args after `--`, like the following: ```rust cargo run -- --duration 5 --port 8000 --peer 127.0.0.1:8000 ``` ## Usage ```rust $ cargo run -- --help Finished dev [unoptimized + debuginfo] target(s) in 0.11s Running `target/debug/grapevine -h` grapevine v0.1.0 Kobby Pentangeli A simple peer-to-peer gossip protocol handler Usage: main [OPTIONS] --port --duration Options: -p, --port Sets the port to listen to. Example: --port 8000 -d, --duration Sets the duration (in seconds) of emitting messages to other peers. Example: --duration 5 --peer Sets the optional peer address to connect to. Example: --peer 127.0.0.1:8000 -h, --help Print help -V, --version Print version ```