diff options
author | Keuin <[email protected]> | 2023-09-04 01:57:22 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2023-09-04 02:03:15 +0800 |
commit | 143014a91e695106d8383ed173c482b3b4519663 (patch) | |
tree | 717d8d34ce9a5857b0293f7fcf7ea9ba13199da7 /src/arguments.rs |
initial versionv0.1.0
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, +} |