Skip to content

Commit

Permalink
One more fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anfedotoff committed Aug 21, 2023
1 parent 6f9b8bf commit 345e198
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion casr/src/bin/casr-cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fn main() -> Result<()> {
.value_name("NAME")
.default_value("CASR")
.action(ArgAction::Set)
.help("Analysis tool providing results for report"),
.help("Tool name that detected crashes/errors for SARIF report"),
)
.get_matches();

Expand Down
26 changes: 13 additions & 13 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,25 +288,25 @@ Frames that match these regular expressions will be not considered during analys
App provides text-based user interface to view CASR reports, prints joint statistics for
all reports, and converts CASR reports to SARIF format.

Usage: casr-cli [OPTIONS] <REPORT|DIR>
Usage: casr-cli [OPTIONS] <REPORT|DIR>

Arguments:
<REPORT|DIR> CASR report file to view or directory with reports
Arguments:
<REPORT|DIR> CASR report file to view or directory with reports

Options:
-v, --view <MODE> View mode [default: tree] [possible values: tree, slider,
stdout]
-u, --unique Print only unique crash lines in joint statistics
--sarif <OUTPUT> Generate SARIF report from CASR reports
--source-root <PATH> Source root path in CASR reports for SARIF report generation
--tool <NAME> Analysis tool providing results for report [default: CASR]
-h, --help Print help
-V, --version Print version
Options:
-v, --view <MODE> View mode [default: tree] [possible values: tree, slider,
stdout]
-u, --unique Print only unique crash lines in joint statistics
--sarif <OUTPUT> Generate SARIF report from CASR reports
--source-root <PATH> Source root path in CASR reports for SARIF report generation
--tool <NAME> Analysis tool providing results for report [default: CASR]
-h, --help Print help
-V, --version Print version

There are three view modes: tree, slider (list), and stdout. In stdout mode
`casr-cli` prints text-based CASR report to stdout.

`casr-cli` could convert a directory with casr reports or single report into SARIF
`casr-cli` can convert a directory with casr reports or single report into SARIF
report. You could load resulting SARIF report into IDE and continue crash
analysis.

Expand Down
2 changes: 1 addition & 1 deletion libcasr/src/sarif.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ where
if let Ok(norm_source_path) = path.as_ref().lexiclean().as_path().strip_prefix(root) {
norm_source_path.to_path_buf()
} else {
path.as_ref().to_path_buf()
path.as_ref().lexiclean()
}
}

Expand Down

0 comments on commit 345e198

Please sign in to comment.