Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ Arguments:
[DIRECTORIES]... Directories to scan for projects to clean

Options:
--dry-run Enable dry run mode
--follow-symlinks Follow symlinks during traversal
-i, --interactive Prompt before each task
--older-than <OLDER_THAN> Only clean projects older than the specified age
-q, --quiet Suppress all output
-h, --help Print help
-V, --version Print version
--dry-run Enable dry run mode
--follow-symlinks Follow symlinks during traversal
-i, --interactive Prompt before each task
--older-than <AGE> Only clean projects older than the specified age (e.g., 30d, 2w, 1mo)
-q, --quiet Suppress all output
-h, --help Print help
-V, --version Print version
```

## Configuration
Expand Down
6 changes: 5 additions & 1 deletion src/arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ pub(crate) struct Arguments {
conflicts_with = "quiet"
)]
interactive: bool,
#[clap(long, help = "Only clean projects older than the specified age")]
#[clap(
long,
value_name = "AGE",
help = "Only clean projects older than the specified age (e.g., 30d, 2w, 1mo)"
)]
older_than: Option<Age>,
#[clap(
short,
Expand Down