Skip to content

Commit e3f129e

Browse files
authored
Merge pull request #720 from sdushantha/no-banner
Added --no-banner option
2 parents 604ff2a + d969699 commit e3f129e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/input.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)