summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 666a223..42f9a59 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -1,10 +1,11 @@
-use crate::{search, Config};
use clap::{Args, Parser};
use figment::{value, Metadata, Profile, Provider};
use serde::{Deserialize, Serialize};
use std::path::PathBuf;
use tracing::{metadata::LevelFilter, Level};
+use crate::{search, Config};
+
/// Tool for listing project directories.
#[derive(Debug, Clone, Default, Parser, Serialize, Deserialize)]
#[command(author, version, about)]
@@ -38,7 +39,7 @@ pub struct Projects {
hidden: bool,
/// Match git repositories
- #[arg(long, short)]
+ #[arg(long, short, default_value_t = true)]
git: bool,
/// Match directories containing item named <PATTERN>