diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index c47f270..e46acae 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,7 +18,10 @@ use structopt::StructOpt; #[structopt(name = "team", about = "manage the rust team members")] enum Cli { #[structopt(name = "check", help = "check if the configuration is correct")] - Check, + Check { + #[structopt(long = "strict", help = "fail if optional checks are not executed")] + strict: bool, + }, #[structopt( name = "add-person", help = "add a new person from their GitHub profile" @@ -65,8 +68,8 @@ fn run() -> Result<(), Error> { let cli = Cli::from_args(); let data = Data::load()?; match cli { - Cli::Check => { - crate::validate::validate(&data)?; + Cli::Check { strict } => { + crate::validate::validate(&data, strict)?; } Cli::AddPerson { ref github_name } => { #[derive(serde::Serialize)] |