Skip to content

Commit

Permalink
Merge pull request #155 from wash-amzn/main
Browse files Browse the repository at this point in the history
Make -r argument to 'report' required and improve usage message
  • Loading branch information
wash-amzn authored Apr 9, 2024
2 parents 7b4d8c2 + 8d9a3a3 commit 9e17ee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/data/processes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl GetData for Processes {
Data::ProcessesRaw(ref value) => value,
_ => panic!("Invalid Data type in raw file"),
};
*TICKS_PER_SECOND.lock().unwrap() = raw_value.ticks_per_second as u64;
*TICKS_PER_SECOND.lock().unwrap() = raw_value.ticks_per_second;
let reader = BufReader::new(raw_value.data.as_bytes());
processes.time = raw_value.time;
for line in reader.lines() {
Expand Down
2 changes: 1 addition & 1 deletion src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::path::{Path, PathBuf};
#[derive(Clone, Args, Debug)]
pub struct Report {
/// Run data to be visualized. Can be a directory or a tarball.
#[clap(short, long, value_parser)]
#[clap(short, long, value_parser, required = true, num_args = 1..)]
run: Vec<String>,

/// Report name.
Expand Down

0 comments on commit 9e17ee1

Please sign in to comment.