@@ -15,14 +15,6 @@ exports[`boolean flags do not swallow the next argument 1`] = `
1515}
1616` ;
1717
18- exports [` deprecated option values are warned 1` ] = `
19- {
20- " stderr" : " [warn] --jsx-bracket-same-line is deprecated." ,
21- " stdout" : " console.log(" could be single quote and without semi " );" ,
22- " write" : [],
23- }
24- ` ;
25-
2618exports [` negated options work 1` ] = `
2719{
2820 " stderr" : " " ,
@@ -64,39 +56,31 @@ exports[`number file/dir 5`] = `
6456}
6557` ;
6658
67- exports [` options with \` cliName \` should not allow to pass directly 1` ] = `
59+ exports [` unknown negated options are errored 1` ] = `
6860{
69- " stdout" : " prettier();" ,
70- }
71- ` ;
72-
73- exports [` options with \` cliName\` should not allow to pass directly 2` ] = `
74- {
75- " stderr" : " [warn] Ignored unknown option --filepath=file.js.
76- [error ] No parser and no file path given , couldn ' t infer a parser.",
61+ " stderr" : "
62+ Unknown option: " unknown "
63+ " ,
7764 " stdout" : " " ,
78- }
79- ` ;
80-
81- exports [` unknown negated options are warned 1` ] = `
82- {
83- " stderr" : " [warn] Ignored unknown option --no-unknown." ,
84- " stdout" : " console.log(" could be single quote and without semi " );" ,
8565 " write" : [],
8666}
8767` ;
8868
89- exports [` unknown options are warned 1` ] = `
69+ exports [` unknown options are errored 1` ] = `
9070{
91- " stderr" : " [warn] Ignored unknown option --unknown." ,
92- " stdout" : " console.log(" could be single quote and without semi " );" ,
71+ " stderr" : "
72+ Unknown option: " unknown "
73+ " ,
74+ " stdout" : " " ,
9375 " write" : [],
9476}
9577` ;
9678
97- exports [` unknown options not suggestion \` _\` 1` ] = `
79+ exports [` unknown options may trigger a suggestion \` _\` 1` ] = `
9880{
99- " stderr" : " [warn] Ignored unknown option -a. Did you mean -c?" ,
100- " stdout" : " console.log(" could be single quote and without semi " );" ,
81+ " stderr" : "
82+ Unknown option: " a " . Did you mean " v " ?
83+ " ,
84+ " stdout" : " " ,
10185}
10286` ;
0 commit comments