File tree Expand file tree Collapse file tree 5 files changed +13
-10
lines changed Expand file tree Collapse file tree 5 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ use cargo::ops::{self, TestOptions};
3
3
4
4
pub fn cli ( ) -> Command {
5
5
subcommand ( "bench" )
6
- . trailing_var_arg ( true )
7
6
. about ( "Execute all benchmarks of a local package" )
8
7
. arg_quiet ( )
9
8
. arg (
@@ -14,7 +13,8 @@ pub fn cli() -> Command {
14
13
. arg (
15
14
Arg :: new ( "args" )
16
15
. help ( "Arguments for the bench binary" )
17
- . num_args ( 0 ..) ,
16
+ . num_args ( 0 ..)
17
+ . trailing_var_arg ( true ) ,
18
18
)
19
19
. arg_targets_all (
20
20
"Benchmark only this package's library" ,
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ pub fn cli() -> Command {
8
8
subcommand ( "run" )
9
9
// subcommand aliases are handled in aliased_command()
10
10
// .alias("r")
11
- . trailing_var_arg ( true )
12
11
. about ( "Run a binary or example of the local package" )
13
12
. arg_quiet ( )
14
13
. arg (
15
14
Arg :: new ( "args" )
16
15
. value_parser ( value_parser ! ( std:: ffi:: OsString ) )
17
- . num_args ( 0 ..) ,
16
+ . num_args ( 0 ..)
17
+ . trailing_var_arg ( true ) ,
18
18
)
19
19
. arg_targets_bin_example (
20
20
"Name of the bin target to run" ,
Original file line number Diff line number Diff line change @@ -7,10 +7,14 @@ const CRATE_TYPE_ARG_NAME: &str = "crate-type";
7
7
8
8
pub fn cli ( ) -> Command {
9
9
subcommand ( "rustc" )
10
- . trailing_var_arg ( true )
11
10
. about ( "Compile a package, and pass extra options to the compiler" )
12
11
. arg_quiet ( )
13
- . arg ( Arg :: new ( "args" ) . num_args ( 0 ..) . help ( "Rustc flags" ) )
12
+ . arg (
13
+ Arg :: new ( "args" )
14
+ . num_args ( 0 ..)
15
+ . help ( "Rustc flags" )
16
+ . trailing_var_arg ( true ) ,
17
+ )
14
18
. arg_package ( "Package to build" )
15
19
. arg_jobs ( )
16
20
. arg_targets_all (
Original file line number Diff line number Diff line change @@ -4,10 +4,9 @@ use crate::command_prelude::*;
4
4
5
5
pub fn cli ( ) -> Command {
6
6
subcommand ( "rustdoc" )
7
- . trailing_var_arg ( true )
8
7
. about ( "Build a package's documentation, using specified custom flags." )
9
8
. arg_quiet ( )
10
- . arg ( Arg :: new ( "args" ) . num_args ( 0 ..) )
9
+ . arg ( Arg :: new ( "args" ) . num_args ( 0 ..) . trailing_var_arg ( true ) )
11
10
. arg ( flag (
12
11
"open" ,
13
12
"Opens the docs in a browser after the operation" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ pub fn cli() -> Command {
5
5
subcommand ( "test" )
6
6
// Subcommand aliases are handled in `aliased_command()`.
7
7
// .alias("t")
8
- . trailing_var_arg ( true )
9
8
. about ( "Execute all unit and integration tests and build examples of a local package" )
10
9
. arg (
11
10
Arg :: new ( "TESTNAME" )
@@ -15,7 +14,8 @@ pub fn cli() -> Command {
15
14
. arg (
16
15
Arg :: new ( "args" )
17
16
. help ( "Arguments for the test binary" )
18
- . num_args ( 0 ..) ,
17
+ . num_args ( 0 ..)
18
+ . trailing_var_arg ( true ) ,
19
19
)
20
20
. arg (
21
21
flag (
You can’t perform that action at this time.
0 commit comments