File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ enum OuterCommand {
82
82
#[ clap( version, about) ]
83
83
struct Args {
84
84
/// Directory containing crate to analyze. Defaults to current working directory.
85
- #[ clap( short , long) ]
85
+ #[ clap( long) ]
86
86
path : Option < PathBuf > ,
87
87
88
88
/// Path to cackle.toml. Defaults to cackle.toml in the directory containing Cargo.toml.
@@ -163,6 +163,12 @@ struct Args {
163
163
#[ clap( long) ]
164
164
no_backtrace : bool ,
165
165
166
+ // We may at some point allow this to be a short flag, but should probably wait a few releases.
167
+ // -p was previously accepted for --path.
168
+ /// Packages to build and analyse.
169
+ #[ clap( long) ]
170
+ package : Vec < String > ,
171
+
166
172
#[ command( subcommand) ]
167
173
command : Option < Command > ,
168
174
}
Original file line number Diff line number Diff line change @@ -121,6 +121,9 @@ impl<'a> CargoRunner<'a> {
121
121
self . args ,
122
122
& self . config . raw . common ,
123
123
) ;
124
+ for pkg in & self . args . package {
125
+ command. arg ( "-p" ) . arg ( pkg) ;
126
+ }
124
127
if self . args . command . is_none ( ) {
125
128
let default_build_flags = [ "--all-targets" . to_owned ( ) ] ;
126
129
for flag in self
You can’t perform that action at this time.
0 commit comments