@@ -32,9 +32,19 @@ pub struct Format {
3232 /// If the path is a directory, whether to walk through and optimise its subdirectories
3333 #[ clap( long, short, default_value = "false" ) ]
3434 pub recursive : bool ,
35- /// Search through hidden files and directories
35+ /// Search through hidden files and directories.
36+ ///
37+ /// A file or directory is considered hidden if its base name starts with a '.' or if the operating
38+ /// system provides a "hidden" file attribute.
39+ ///
40+ /// Ignored files will continue to be skipped and can be enabled with the `--no-ignore` flag.
3641 #[ clap( long, short = '.' , default_value = "false" ) ]
3742 pub hidden : bool ,
43+ /// When set, patterns defined in files such as `.gitigore` will be disregarded.
44+ ///
45+ /// Hidden files will continue to be skipped and can be enabled with the `--hidden` flag.
46+ #[ clap( long, default_value = "false" ) ]
47+ pub no_ignore : bool ,
3848 /// Sets the approximate number of threads to use. A value of 0 (default) will automatically determine the appropriate number
3949 #[ clap( long, short, default_value = "0" ) ]
4050 pub threads : usize ,
@@ -53,6 +63,7 @@ impl RunCommand for Format {
5363 output : self . output . as_ref ( ) . and_then ( |output| output. first ( ) ) ,
5464 recursive : self . recursive ,
5565 hidden : self . hidden ,
66+ no_ignore : self . no_ignore ,
5667 threads : self . threads ,
5768 } ;
5869 let error = Arc :: new ( AtomicBool :: new ( false ) ) ;
0 commit comments