2024-05-29 16:35:00 +01:00
|
|
|
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)]
|
2024-05-29 16:35:00 +01:00
|
|
|
pub(crate) command: Option<Commands>,
|
2024-05-29 13:17:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Subcommand)]
|
2024-05-29 16:35:00 +01:00
|
|
|
pub(crate) enum Commands {
|
2024-05-29 13:17:16 +01:00
|
|
|
/// runs the Side Node
|
|
|
|
|
Run {},
|
2024-05-29 16:35:00 +01:00
|
|
|
Init {},
|
2024-05-29 13:17:16 +01:00
|
|
|
}
|