Make repo optional

This commit is contained in:
Joscha 2023-08-09 14:13:17 +02:00
parent a261bfdd26
commit 04212dff1c
4 changed files with 28 additions and 13 deletions

View file

@ -7,9 +7,8 @@ pub const VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), " (", env!("VERGEN_
pub struct ServerCommand {
/// Path to the repo's tablejohn database.
pub db: PathBuf,
// TODO Make repo optional
/// Path to the git repo.
pub repo: PathBuf,
pub repo: Option<PathBuf>,
}
#[derive(Debug, clap::Parser)]