diff options
| author | mo8it <mo8it@proton.me> | 2024-06-02 00:11:41 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-06-02 00:11:41 +0200 |
| commit | 08ac11ff2250190a47a74a767c2efa3a71ce1e73 (patch) | |
| tree | f1a22e71f53fc60fa99a83a5c5406e34825b2b7f /src/dev.rs | |
| parent | 6ae4a979f48301d259666129d2138291cd21246a (diff) | |
Add --require-solutions option to `dev check`
Diffstat (limited to 'src/dev.rs')
| -rw-r--r-- | src/dev.rs | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -19,7 +19,11 @@ pub enum DevCommands { no_git: bool, }, /// Run checks on the exercises - Check, + Check { + /// Require that every exercise has a solution + #[arg(short, long)] + require_solutions: bool, + }, /// Update the `Cargo.toml` file for the exercises Update, } @@ -34,7 +38,7 @@ impl DevCommands { new::new(&path, no_git).context(INIT_ERR) } - Self::Check => check::check(), + Self::Check { require_solutions } => check::check(require_solutions), Self::Update => update::update(), } } |
