Skip to content

Commit

Permalink
Made manifest output path optional
Browse files Browse the repository at this point in the history
  • Loading branch information
dwattttt committed Nov 17, 2024
1 parent 56ff3fe commit 79731e4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ enum Command {
KernelCrashdump {
/// The crashdump file to process
crashdump_path: PathBuf,
/// Manifest file to generate
manifest_path: PathBuf,
/// The manifest path
manifest: Option<PathBuf>,
/// Download binaries as well as well as symbols
#[arg(short, long)]
binaries: bool,
Expand Down Expand Up @@ -758,10 +758,12 @@ async fn run() -> anyhow::Result<()> {
}
Command::KernelCrashdump {
crashdump_path,
manifest_path,
manifest,
binaries,
include_user,
} => {
let manifest_path = manifest.unwrap_or(PathBuf::from("manifest"));

let manifest_data =
get_module_list_from_kernel_crash(&crashdump_path, binaries, include_user)
.context("Failed to generate manifest for kernel crashdump")?;
Expand Down

0 comments on commit 79731e4

Please sign in to comment.