2023-04-21 06:43:37 +00:00
|
|
|
use clap::{Parser, Subcommand};
|
2023-04-20 07:39:40 +00:00
|
|
|
|
2023-04-21 06:43:37 +00:00
|
|
|
#[derive(Parser)]
|
2023-04-20 07:39:40 +00:00
|
|
|
#[command(author, version, about, long_about = None)]
|
2023-04-21 06:43:37 +00:00
|
|
|
#[command(propagate_version = true)]
|
|
|
|
pub struct Cli {
|
|
|
|
#[command(subcommand)]
|
|
|
|
pub command: Commands,
|
|
|
|
}
|
2023-04-20 07:39:40 +00:00
|
|
|
|
2023-04-21 06:43:37 +00:00
|
|
|
#[derive(Subcommand)]
|
|
|
|
pub enum Commands {
|
|
|
|
Client { address: String },
|
|
|
|
Server,
|
|
|
|
}
|