added argument parsing and structure with clap

This commit is contained in:
2023-03-08 20:39:57 +01:00
parent ab4d2bf7c3
commit 85218ba57f
5 changed files with 229 additions and 5 deletions

12
src/app/args/structure.rs Normal file
View File

@@ -0,0 +1,12 @@
use clap::{Parser, Subcommand};
#[derive(Parser)]
pub struct Args {
#[command(subcommand)]
command: Option<CommandArg>
}
#[derive(Subcommand)]
enum CommandArg {
Build,
}