Files
bft-crdt-experiment/side-node/src/cli/mod.rs

24 lines
422 B
Rust
Raw Normal View History

use clap::Parser;
use clap::Subcommand;
2024-05-29 13:17:16 +01:00
pub(crate) fn parse_args() -> Args {
let args = Args::parse();
args
}
/// Simple program to greet a person
#[derive(Parser)]
#[command(version, about, long_about = None)]
pub(crate) struct Args {
#[command(subcommand)]
pub(crate) command: Option<Commands>,
2024-05-29 13:17:16 +01:00
}
#[derive(Subcommand)]
pub(crate) enum Commands {
2024-05-29 13:17:16 +01:00
/// runs the Side Node
Run {},
Init {},
2024-05-29 13:17:16 +01:00
}