@@ -5,7 +5,7 @@ use super::utils;
5
5
#[ test]
6
6
fn single_short_arg_without_value ( ) {
7
7
let cmd = Command :: new ( "cmd" ) . ignore_errors ( true ) . arg ( arg ! (
8
- -c --config [ FILE ] "Sets a custom config file"
8
+ -c --config < FILE > "Sets a custom config file"
9
9
) ) ;
10
10
11
11
let r = cmd. try_get_matches_from ( vec ! [ "cmd" , "-c" /* missing: , "config file" */ ] ) ;
@@ -18,7 +18,7 @@ fn single_short_arg_without_value() {
18
18
#[ test]
19
19
fn single_long_arg_without_value ( ) {
20
20
let cmd = Command :: new ( "cmd" ) . ignore_errors ( true ) . arg ( arg ! (
21
- -c --config [ FILE ] "Sets a custom config file"
21
+ -c --config < FILE > "Sets a custom config file"
22
22
) ) ;
23
23
24
24
let r = cmd. try_get_matches_from ( vec ! [ "cmd" , "--config" /* missing: , "config file" */ ] ) ;
@@ -33,10 +33,10 @@ fn multiple_args_and_final_arg_without_value() {
33
33
let cmd = Command :: new ( "cmd" )
34
34
. ignore_errors ( true )
35
35
. arg ( arg ! (
36
- -c --config [ FILE ] "Sets a custom config file"
36
+ -c --config < FILE > "Sets a custom config file"
37
37
) )
38
38
. arg ( arg ! (
39
- -x --stuff [ FILE ] "Sets a custom stuff file"
39
+ -x --stuff < FILE > "Sets a custom stuff file"
40
40
) )
41
41
. arg ( arg ! ( f: -f "Flag" ) . action ( ArgAction :: SetTrue ) ) ;
42
42
@@ -59,10 +59,10 @@ fn multiple_args_and_intermittent_arg_without_value() {
59
59
let cmd = Command :: new ( "cmd" )
60
60
. ignore_errors ( true )
61
61
. arg ( arg ! (
62
- -c --config[ FILE ] "Sets a custom config file"
62
+ -c --config < FILE > "Sets a custom config file"
63
63
) )
64
64
. arg ( arg ! (
65
- -x --stuff[ FILE ] "Sets a custom stuff file"
65
+ -x --stuff < FILE > "Sets a custom stuff file"
66
66
) )
67
67
. arg ( arg ! ( f: -f "Flag" ) . action ( ArgAction :: SetTrue ) ) ;
68
68
0 commit comments