diff options
Diffstat (limited to 'src/arguments.rs')
-rw-r--r-- | src/arguments.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/arguments.rs b/src/arguments.rs new file mode 100644 index 0000000..5f3d8e2 --- /dev/null +++ b/src/arguments.rs @@ -0,0 +1,17 @@ +use clap::{arg, Parser}; + +#[derive(Parser, Debug)] +#[command(author, version, about, long_about = None)] +pub struct Args { + pub mode: Mode, + + /// The config file to use + #[arg(short, long)] + pub config: String, +} + +#[derive(clap::ValueEnum, Clone, Debug)] +pub enum Mode { + SERVER, + CLIENT, +} |