Skip to content

Commit

Permalink
Add --no-browser flag
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Z. Yang <[email protected]>
  • Loading branch information
ezyang committed Feb 27, 2024
1 parent 6213dde commit 6b934ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ struct Cli {
/// testing.
#[arg(long)]
strict: bool,
/// Don't open browser at the end
#[arg(long)]
no_browser: bool,
}

#[derive(Default)]
Expand Down Expand Up @@ -497,7 +500,9 @@ fn main() -> ExitCode {
)
.unwrap();

opener::open(out_path.join("index.html")).unwrap();
if !cli.no_browser {
opener::open(out_path.join("index.html")).unwrap();
}

// other_rank is included here because you should only have logs from one rank when
// configured properly
Expand Down

0 comments on commit 6b934ee

Please sign in to comment.