elementary-row-operation-verifier 0.0.1

A tool to verify the correctness of elementary row operations on matrices
Documentation
use clap::{Parser, Subcommand};

#[derive(Parser)]
#[command(name = "elementary-row-operation-verifier")]
#[command(about = "Verify the correctness of elementary row operations", long_about = None)]
pub struct Cli {
    /// Path to a .lore file
    #[arg(value_name = "FILE")]
    pub file_path: Option<String>,

    #[command(subcommand)]
    pub command: Option<Command>,

    #[arg(short, long, help = "Output in plain text mode (no TUI)")]
    pub plain: bool,

    #[arg(short = 'v', long, help = "Verbose output")]
    pub verbose: bool,
}

#[derive(Subcommand)]
pub enum Command {
    /// Check all .lore files in a directory
    Check {
        /// Path to the directory containing .lore files
        #[arg(value_name = "DIR")]
        path: String,
    },
}

impl Cli {
    pub fn parse() -> Self {
        Parser::parse()
    }
}