Skip to content

Commit

Permalink
Add -C for --cargo-arg
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Aug 7, 2022
1 parent 43d9552 commit b9b515c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Unreleased

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

- Improved: Works properly if run from a subdirectory of a crate, or if `-d` points to a
subdirectory of a crate.
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ struct Args {
version: bool,

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

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

0 comments on commit b9b515c

Please sign in to comment.