File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
clap_complete/tests/testsuite Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 22
33use std:: path:: Path ;
44
5- use clap:: Command ;
5+ use clap:: { builder :: PossibleValue , Command } ;
66
77macro_rules! complete {
88 ( $cmd: expr, $input: expr$( , current_dir = $current_dir: expr) ? $( , ) ?) => {
@@ -61,13 +61,13 @@ fn suggest_long_flag_subset() {
6161fn suggest_possible_value_subset ( ) {
6262 let name = "exhaustive" ;
6363 let mut cmd = Command :: new ( name) . arg ( clap:: Arg :: new ( "hello-world" ) . value_parser ( [
64- "hello-world" ,
65- "hello-moon" ,
66- "goodbye-world" ,
64+ PossibleValue :: new ( "hello-world" ) . help ( "Say hello to the world" ) ,
65+ "hello-moon" . into ( ) ,
66+ "goodbye-world" . into ( ) ,
6767 ] ) ) ;
6868
6969 snapbox:: assert_eq (
70- "hello-world
70+ "hello-world\t Say hello to the world
7171hello-moon" ,
7272 complete ! ( cmd, "hello" ) ,
7373 ) ;
You can’t perform that action at this time.
0 commit comments