File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,10 @@ pub struct Opts {
8989 #[ arg( short, long) ]
9090 pub no_config : bool ,
9191
92+ /// Hide the banner
93+ #[ arg( long) ]
94+ pub no_banner : bool ,
95+
9296 /// Custom path to config file
9397 #[ arg( short, long, value_parser) ]
9498 pub config_path : Option < PathBuf > ,
@@ -237,6 +241,7 @@ impl Default for Opts {
237241 resolver : None ,
238242 scan_order : ScanOrder :: Serial ,
239243 no_config : true ,
244+ no_banner : false ,
240245 top : false ,
241246 scripts : ScriptsRequired :: Default ,
242247 config_path : None ,
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ fn main() {
6262
6363 debug ! ( "Scripts initialized {:?}" , & scripts_to_run) ;
6464
65- if !opts. greppable && !opts. accessible {
65+ if !opts. greppable && !opts. accessible && !opts . no_banner {
6666 print_opening ( & opts) ;
6767 }
6868
You can’t perform that action at this time.
0 commit comments