Skip to content

Commit 06453ff

Browse files
committed
Don't use positional arguments for cargo plugin
1 parent d14b94d commit 06453ff

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo-clean-all"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
authors = ["Daniel M <danielm-github@dnml.de>"]
55
license = "MIT"
66
repository = "https://github.com/dnlmlr/cargo-clean-all"

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::{
1111
#[clap(author, version, about, long_about = None)]
1212
struct AppArgs {
1313
/// The directory that will be cleaned
14-
#[clap(default_value_t = String::from("."), value_name = "DIR")]
14+
#[clap(short = 'r', long = "dir", default_value_t = String::from("."), value_name = "DIR")]
1515
root_dir: String,
1616

1717
/// Don't ask for confirmation
@@ -39,7 +39,7 @@ struct AppArgs {
3939
/// Just collect the cleanable project dirs but don't attempt to clean anything
4040
#[clap(long = "dry-run")]
4141
dry_run: bool,
42-
42+
4343
/// The number of threads to use for directory scaning. 0 uses the same amout of theres as CPU
4444
/// cores
4545
#[clap(

0 commit comments

Comments
 (0)