@@ -23,18 +23,15 @@ const PATHS_ERROR_MESSAGE: &str = "PATH must not contain \"..\"";
2323pub struct FormatCommand {
2424 #[ bpaf( external, fallback( OutputOptions :: DefaultWrite ) ) ]
2525 pub output_options : OutputOptions ,
26-
2726 #[ bpaf( external) ]
2827 pub basic_options : BasicOptions ,
29-
3028 #[ bpaf( external) ]
3129 pub ignore_options : IgnoreOptions ,
32-
3330 #[ bpaf( external) ]
3431 pub misc_options : MiscOptions ,
35-
3632 /// Single file, single path or list of paths.
3733 /// If not provided, current working directory is used.
34+ /// Glob is supported only for exclude patterns like `'!**/fixtures/*.js'.
3835 // `bpaf(fallback)` seems to have issues with `many` or `positional`,
3936 // so we implement the fallback behavior in code instead.
4037 #[ bpaf( positional( "PATH" ) , many, guard( validate_paths, PATHS_ERROR_MESSAGE ) ) ]
@@ -44,7 +41,7 @@ pub struct FormatCommand {
4441/// Output Options
4542#[ derive( Debug , Clone , Bpaf ) ]
4643pub enum OutputOptions {
47- /// Default - when no output option is specified, behaves like `--write`
44+ /// Default - when no output option is specified, behaves like `--write` mode in Prettier
4845 #[ bpaf( hide) ]
4946 DefaultWrite ,
5047 /// Check mode - check if files are formatted
@@ -66,7 +63,7 @@ pub struct BasicOptions {
6663/// Ignore Options
6764#[ derive( Debug , Clone , Bpaf ) ]
6865pub struct IgnoreOptions {
69- /// Format code in node_modules directory (disabled by default)
66+ /// Format code in node_modules directory (skipped by default)
7067 #[ bpaf( switch, hide_usage) ]
7168 pub with_node_modules : bool ,
7269}
0 commit comments