refactored the project using the clap crate
This commit is contained in:
@@ -3,11 +3,11 @@ use clap::{Parser, Subcommand};
|
||||
#[derive(Parser)]
|
||||
pub struct Args {
|
||||
#[command(subcommand)]
|
||||
command: CommandArg
|
||||
pub command: CommandArg
|
||||
}
|
||||
|
||||
#[derive(Subcommand)]
|
||||
enum CommandArg {
|
||||
pub enum CommandArg {
|
||||
Build,
|
||||
Health,
|
||||
InstallReveal
|
||||
|
||||
Reference in New Issue
Block a user