using Clap https://github.com/clap-rs/clap write a cmd_line parser which we provide a basic usage and help the parser should collect arguments and return values for the following data
the parser should read and process arguments and determine if there are for the client wants to post or join a group , Meaning the parser should either return
FromCLient::Join or FromClient::Post
async fn send_commands(mut to_server: net::TcpStream) -> anyhow::Result<()> {
// Todo: Implement use clap to parse command line arguments and print help message
// send_as_json(&mut to_server, &result).await?;
todo!()
}
using Clap https://github.com/clap-rs/clap write a cmd_line parser which we provide a basic usage and help the parser should collect arguments and return values for the following data
the parser should read and process arguments and determine if there are for the client wants to post or join a group , Meaning the parser should either return
FromCLient::JoinorFromClient::Post