Skip to content

Commit

Permalink
add --no-welcome-screen option
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaSd committed Nov 1, 2023
1 parent f2cdb38 commit 4015fa3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/irust/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ pub enum ArgsResult {
}

pub fn handle_args(args: &[String], options: &mut Options) -> ArgsResult {
if args.contains(&"--no-welcome-screen".into()) {
options.first_irust_run = false;
}
match args[0].as_str() {
"-h" | "--help" => {
println!(
Expand Down Expand Up @@ -43,6 +46,10 @@ pub fn handle_args(args: &[String], options: &mut Options) -> ArgsResult {
ArgsResult::Proceed
}
"--default-config" => ArgsResult::ProceedWithDefaultConfig,
"--no-welcome-screen" => {
/*handled above */
ArgsResult::Proceed
}
maybe_path => {
let path = Path::new(&maybe_path);
if path.exists() {
Expand Down

0 comments on commit 4015fa3

Please sign in to comment.