File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -746,8 +746,9 @@ fn assert_arg(arg: &Arg) {
746
746
) ;
747
747
assert ! (
748
748
arg. is_takes_value_set( ) ,
749
- "Argument '{}` is positional, it must take a value{}" ,
749
+ "Argument '{}` is positional and it must take a value but action is {:?} {}" ,
750
750
arg. get_id( ) ,
751
+ arg. get_action( ) ,
751
752
if arg. get_id( ) == Id :: HELP {
752
753
" (`mut_arg` no longer works with implicit `--help`)"
753
754
} else if arg. get_id( ) == Id :: VERSION {
Original file line number Diff line number Diff line change @@ -1730,7 +1730,7 @@ fn issue_2229() {
1730
1730
}
1731
1731
1732
1732
#[ test]
1733
- #[ should_panic = "Argument 'pos` is positional, it must take a value" ]
1733
+ #[ should_panic = "Argument 'pos` is positional and it must take a value but action is SetTrue " ]
1734
1734
fn disallow_positionals_without_values ( ) {
1735
1735
let cmd = Command :: new ( "test" ) . arg ( Arg :: new ( "pos" ) . num_args ( 0 ) ) ;
1736
1736
cmd. debug_assert ( ) ;
You can’t perform that action at this time.
0 commit comments