Skip to content

Commit b9b515c

Browse files
committed
Add -C for --cargo-arg
1 parent 43d9552 commit b9b515c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unreleased
44

5-
- Added: `--cargo-arg` allows passing arguments to cargo commands (check, build, and test), for example to set `--release` or `--features`.
5+
- Added: `--cargo-arg` (or `-C` for short) allows passing arguments to cargo commands (check, build, and test), for example to set `--release` or `--features`.
66

77
- Improved: Works properly if run from a subdirectory of a crate, or if `-d` points to a
88
subdirectory of a crate.

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ struct Args {
123123
version: bool,
124124

125125
/// additional args for all cargo invocations.
126-
#[argh(option)]
126+
#[argh(option, short = 'C')]
127127
cargo_arg: Vec<String>,
128128

129129
// The following option captures all the remaining non-option args, to

0 commit comments

Comments
 (0)