Skip to content
Snippets Groups Projects
Verified Commit d67f1cfd authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

remove --debug from make.rs

parent 87353766
No related branches found
No related tags found
1 merge request!202use `gitlab.isae-supaero.fr:a.stevan/nob.rs` to build
Pipeline #8281 passed
......@@ -11,10 +11,6 @@ use clap::{Parser, Subcommand};
#[derive(Parser)]
#[command(version, about, long_about = None)]
struct Cli {
/// Turn debugging information on
#[arg(short, long, action = clap::ArgAction::Count)]
debug: u8,
#[command(subcommand)]
command: Option<Commands>,
}
......@@ -60,13 +56,6 @@ enum Commands {
fn main() {
let cli = Cli::parse();
match cli.debug {
0 => println!("Debug mode is off"),
1 => println!("Debug mode is kind of on"),
2 => println!("Debug mode is on"),
_ => println!("Don't be crazy"),
}
match &cli.command {
Some(Commands::Fmt { check }) => {
if *check {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment