Use cli parser with auto-generated help

This commit is contained in:
Aleksey Kladov 2021-03-01 21:12:44 +03:00
parent 9860a39603
commit 4ce20b80c5
8 changed files with 195 additions and 134 deletions

View file

@ -6,9 +6,9 @@ use std::{
use anyhow::Result;
use xshell::rm_rf;
pub(crate) struct PreCacheCmd;
use crate::flags;
impl PreCacheCmd {
impl flags::PreCache {
/// Cleans the `./target` dir after the build such that only
/// dependencies are cached on CI.
pub(crate) fn run(self) -> Result<()> {